-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
41 lines (33 loc) · 1.11 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const WebpackBar = require('webpackbar');
const Encore = require('@symfony/webpack-encore');
Encore
.addPlugin(
new WebpackBar({
profile: Encore.isProduction(),
minimal: false,
}),
)
.setOutputPath('public/assets/')
.setPublicPath('/assets')
.setManifestKeyPrefix('assets')
.copyFiles({
from: './assets/static',
})
.cleanupOutputBeforeBuild()
.disableSingleRuntimeChunk()
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(false)
.addEntry('bolt', './assets/js/bolt.js')
.addEntry('zxcvbn', './assets/js/zxcvbn.js')
.addEntry('vibrant', './assets/js/vibrant.js')
.addStyleEntry('theme-default', './assets/scss/themes/default.scss')
.addStyleEntry('theme-light', './assets/scss/themes/light.scss')
.addStyleEntry('theme-dark', './assets/scss/themes/dark.scss')
.addStyleEntry('theme-woordpers', './assets/scss/themes/woordpers.scss')
.splitEntryChunks()
.autoProvidejQuery()
.enableVueLoader()
.enableSassLoader()
.enablePostCssLoader()
.enableVueLoader(() => {}, { runtimeCompilerBuild: true });
module.exports = Encore.getWebpackConfig();