Skip to content

Commit

Permalink
chore: update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Nov 1, 2021
1 parent 44e65a7 commit d7cbf00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/apps/components/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ module.exports = (env) => {
...config,
entry,
plugins,
output: {
...config.output,
chunkFilename: (pathData) => {
return `${pathData.chunk.contentHash.javascript}.js`;
},
},
module: {
...config.module,
rules: [
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const config = require('@neve-wp/components/config/webpack.config');
const config = require('./assets/apps/components/config/webpack.config');

module.exports = config;

0 comments on commit d7cbf00

Please sign in to comment.