forked from DesignedOC/NAO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
25 lines (20 loc) · 921 Bytes
/
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
var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
// .enableSourceMaps(!Encore.isProduction())
// .enableVersioning(Encore.isProduction())
// .addEntry('js/app', './assets/js/app.js')
// .addStyleEntry('css/app', './assets/css/app.scss')
.enableSassLoader()
// uncomment for legacy applications that require $/jQuery as a global variable
.autoProvidejQuery()
.addEntry('js/app', './assets/js/app.js')
.addEntry('js/front', './assets/js/front.js')
.addStyleEntry('css/app', ['./assets/scss/app.scss'])
.addStyleEntry('css/front', ['./assets/scss/front.scss'])
.addEntry('js/observAutocomplete', './assets/js/observAutocomplete.js')
.addStyleEntry('css/observAutocomplete', ['./assets/scss/observAutocomplete.scss'])
;
module.exports = Encore.getWebpackConfig();