22 lines
537 B
JavaScript
22 lines
537 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())
|
||
|
|
||
|
.enableSassLoader()
|
||
|
;
|
||
|
|
||
|
module.exports = Encore.getWebpackConfig();
|