diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index c082dca8e8efe352b8b292c67534a3f1de5f69b1..efdd8c1536cb593b27e27e440b61ea84feeeaad8 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -29,7 +29,8 @@ const cfg: CallableOption = (_env, _argv) => ({ output: { filename: 'js/[name].[chunkhash].js', path: path.resolve(__dirname, '..', 'schilder2000', 'static'), - publicPath: '/static/' + publicPath: '/static/', + clean: process.env.NODE_ENV === 'production', }, plugins: [ new WebpackAssetsManifest({