sculpin-pagination-test/webpack.config.js
2019-06-21 08:28:06 +01:00

24 lines
636 B
JavaScript

var Encore = require('@symfony/webpack-encore');
Encore
// directory where compiled assets will be stored
.setOutputPath('source/build/')
// public path used by the web server to access the output path
.setPublicPath('/build')
.copyFiles({
from: './source/assets/icons'
})
.addEntry('app', './source/assets/js/app.js')
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
// enables hashed filenames (e.g. app.abc123.css)
.enableVersioning(Encore.isProduction())
.enableSassLoader()
;
module.exports = Encore.getWebpackConfig();