From 2d7356f2bbdf9a4c16a85126e8e4cf93e2e6bda9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 3 May 2023 10:10:17 +0200 Subject: [PATCH] Use the default webpack configuration for dev env We used to override the output filename but this was a misunderstanding of an error (due to webpacke(r) incompatibles versions) https://medium.com/@web_developer/hash-vs-chunkhash-vs-contenthash-e94d38a32208 https://github.com/webpack/webpack.js.org/issues/2096 Context: https://github.com/openfoodfoundation/openfoodnetwork/pull/10631#pullrequestreview-1410083331 --- config/webpack/development.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/webpack/development.js b/config/webpack/development.js index 16cdea1e6d..c5edff94ad 100644 --- a/config/webpack/development.js +++ b/config/webpack/development.js @@ -2,7 +2,4 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development' const environment = require('./environment') -const config = environment.toWebpackConfig(); -config.output.filename = "js/[name]-[hash].js"; - module.exports = environment.toWebpackConfig()