diff --git a/webpack.config.js b/webpack.config.js index 65e84246..938546f4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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()