-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
webpack.config.js
34 lines (24 loc) · 1.01 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
var Encore = require('@symfony/webpack-encore');
Encore
// the project directory where compiled assets will be stored
.setOutputPath('public/bundles/adminlte/')
.setPublicPath('/bundles/adminlte/')
.cleanupOutputBeforeBuild()
// add debug data in development
.enableSourceMaps(!Encore.isProduction())
// uncomment to create hashed filenames (e.g. app.abc123.css)
.enableVersioning(Encore.isProduction())
// generate only two files: app.js and app.css
.addEntry('adminlte', './assets/adminlte-demo.js')
.copyFiles({ from: './assets/images', to: 'images/[path][name].[ext]' })
// show OS notifications when builds finish/fail
.enableBuildNotifications()
// because we need $/jQuery as a global variable
.autoProvidejQuery()
// see https://symfony.com/doc/current/frontend/encore/bootstrap.html
.enableSassLoader(function(sassOptions) {}, {
resolveUrlLoader: false
})
.disableSingleRuntimeChunk()
;
module.exports = Encore.getWebpackConfig();