forked from symfony/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (25 loc) · 798 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
27 lines (25 loc) · 798 Bytes
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
var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.autoProvidejQuery()
.autoProvideVariables({
"window.Bloodhound": require.resolve('bloodhound-js'),
"jQuery.tagsinput": "bootstrap-tagsinput"
})
.enableSassLoader()
.enableVersioning(Encore.isProduction())
.addEntry('app', './assets/js/app.js')
.addEntry('login', './assets/js/login.js')
.addEntry('admin', './assets/js/admin.js')
.addEntry('search', './assets/js/search.js')
.splitEntryChunks()
.enableSingleRuntimeChunk()
.enableIntegrityHashes()
.configureBabel(null, {
useBuiltIns: 'usage',
corejs: 3,
})
;
module.exports = Encore.getWebpackConfig();