Skip to content

Commit

Permalink
Modify configuration to match new version of webpacker
Browse files Browse the repository at this point in the history
Error was:
```
ERROR in chunk admin [entry]
js/[name]-[contenthash].js
Cannot use [chunkhash] or [contenthash] for chunk in 'js/[name]-[contenthash].js' (use [hash] instead)
```
  • Loading branch information
jibees committed Mar 20, 2023
1 parent 4ec55a6 commit de0ccda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/webpack/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ 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()

0 comments on commit de0ccda

Please sign in to comment.