Disable clean webpack plugin for now to make deployments easier

Right now I'm just building the content directly in the public directory, so this reduces the time that visitors would get 404 errors when building a new version.
This commit is contained in:
Matt Isenhower
2017-08-03 12:29:35 -07:00
parent 2a0ad69a28
commit 966475886d

View File

@@ -66,10 +66,10 @@ module.exports = function(env) {
},
plugins: [
// Remove old files
new CleanWebpackPlugin([
'public/assets/css/*',
'public/assets/js/*',
]),
// new CleanWebpackPlugin([
// 'public/assets/css/*',
// 'public/assets/js/*',
// ]),
// Extract CSS to a separate file
new ExtractTextPlugin('assets/css/[name].[contenthash].css'),
// Remove unused CSS styles