Changeset View
Changeset View
Standalone View
Standalone View
webpack.config.js
- This file was added.
1 | var Encore = require('@symfony/webpack-encore'); | ||||
---|---|---|---|---|---|
2 | | ||||
3 | Encore | ||||
4 | // directory where compiled assets will be stored | ||||
5 | .setOutputPath('./') | ||||
6 | // public path used by the web server to access the output path | ||||
7 | .setPublicPath('/') | ||||
8 | | ||||
9 | .addStyleEntry('base', './assets/css/base.scss') | ||||
10 | .addStyleEntry('doc', './assets/css/base.scss') | ||||
11 | .addEntry('app', './assets/js/app.js') | ||||
12 | | ||||
13 | // will require an extra script tag for runtime.js | ||||
14 | // but, you probably want this, unless you're building a single-page app | ||||
15 | .enableSingleRuntimeChunk() | ||||
16 | | ||||
17 | //.cleanupOutputBeforeBuild() | ||||
18 | .enableSourceMaps(!Encore.isProduction()) | ||||
19 | // enables hashed filenames (e.g. app.abc123.css) | ||||
20 | //.enableVersioning(Encore.isProduction()) | ||||
21 | | ||||
22 | .enableSassLoader() | ||||
23 | | ||||
24 | // uncomment if you're having problems with a jQuery plugin | ||||
25 | //.autoProvidejQuery() | ||||
26 | ; | ||||
27 | | ||||
28 | module.exports = Encore.getWebpackConfig(); | ||||
29 | |