mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user