Skip to content
Snippets Groups Projects
Commit 91cc5c37 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

frontend/webpack: Clean output directory in production build

parent faafce40
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,8 @@ const cfg: CallableOption = (_env, _argv) => ({ ...@@ -29,7 +29,8 @@ const cfg: CallableOption = (_env, _argv) => ({
output: { output: {
filename: 'js/[name].[chunkhash].js', filename: 'js/[name].[chunkhash].js',
path: path.resolve(__dirname, '..', 'schilder2000', 'static'), path: path.resolve(__dirname, '..', 'schilder2000', 'static'),
publicPath: '/static/' publicPath: '/static/',
clean: process.env.NODE_ENV === 'production',
}, },
plugins: [ plugins: [
new WebpackAssetsManifest({ new WebpackAssetsManifest({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment