From 4f32ea8c6889be56861a290e633a89c5b6740e3a Mon Sep 17 00:00:00 2001 From: Killy Date: Mon, 6 Nov 2017 18:05:20 +0300 Subject: www: clean webpack output hashed files keep piling up in resources folder atm--- juick-www/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-www/webpack.config.js') diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js index 54c9114d..1885efee 100644 --- a/juick-www/webpack.config.js +++ b/juick-www/webpack.config.js @@ -2,6 +2,7 @@ var webpack = require("webpack") var ExtractTextPlugin = require("extract-text-webpack-plugin") var StyleLintPlugin = require('stylelint-webpack-plugin') var AssetPipelinePlugin = require('webpack-asset-pipeline') +var CleanWebpackPlugin = require('clean-webpack-plugin') module.exports = { devtool: 'source-map', @@ -30,6 +31,7 @@ module.exports = { ] }, plugins: [ + new CleanWebpackPlugin([ '*.css', '*.js', '*.map' ], { root: __dirname + '/src/main/resources' }), new webpack.optimize.ModuleConcatenationPlugin(), new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/static', files: ['**/*.css'], emitErrors: false }), new ExtractTextPlugin({ filename: "style.[hash].css", allChunks: true }), -- cgit v1.2.3