Fix spaces in webpack.config.js

This commit is contained in:
Oliver Davies 2020-01-16 08:57:20 +00:00
parent 778111e806
commit 45ac4e0388

View file

@ -3,16 +3,16 @@ let PurgecssConfig = require('./purgecss.config')
let PurgecssPlugin = require('purgecss-webpack-plugin')
Encore
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.setOutputPath('source/build/')
.setPublicPath('/build')
.addEntry('app', './assets/js/app.js')
.enablePostCssLoader()
.enableSourceMaps(!Encore.isProduction())
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.setOutputPath('source/build/')
.setPublicPath('/build')
.addEntry('app', './assets/js/app.js')
.enablePostCssLoader()
.enableSourceMaps(!Encore.isProduction())
if (Encore.isProduction()) {
Encore.addPlugin(new PurgecssPlugin(PurgecssConfig))
Encore.addPlugin(new PurgecssPlugin(PurgecssConfig))
}
module.exports = Encore.getWebpackConfig()