Fix spaces in webpack.config.js
This commit is contained in:
parent
778111e806
commit
45ac4e0388
|
@ -3,16 +3,16 @@ let PurgecssConfig = require('./purgecss.config')
|
||||||
let PurgecssPlugin = require('purgecss-webpack-plugin')
|
let PurgecssPlugin = require('purgecss-webpack-plugin')
|
||||||
|
|
||||||
Encore
|
Encore
|
||||||
.disableSingleRuntimeChunk()
|
.disableSingleRuntimeChunk()
|
||||||
.cleanupOutputBeforeBuild()
|
.cleanupOutputBeforeBuild()
|
||||||
.setOutputPath('source/build/')
|
.setOutputPath('source/build/')
|
||||||
.setPublicPath('/build')
|
.setPublicPath('/build')
|
||||||
.addEntry('app', './assets/js/app.js')
|
.addEntry('app', './assets/js/app.js')
|
||||||
.enablePostCssLoader()
|
.enablePostCssLoader()
|
||||||
.enableSourceMaps(!Encore.isProduction())
|
.enableSourceMaps(!Encore.isProduction())
|
||||||
|
|
||||||
if (Encore.isProduction()) {
|
if (Encore.isProduction()) {
|
||||||
Encore.addPlugin(new PurgecssPlugin(PurgecssConfig))
|
Encore.addPlugin(new PurgecssPlugin(PurgecssConfig))
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Encore.getWebpackConfig()
|
module.exports = Encore.getWebpackConfig()
|
||||||
|
|
Reference in a new issue