Skip to content

Commit

Permalink
Use .min.js for webpack filename extension
Browse files Browse the repository at this point in the history
Readable .js is handled by webpack plugin.
  • Loading branch information
sirreal committed Sep 20, 2024
1 parent 7608cc6 commit b912d8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/webpack/script-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ module.exports = {
},
output: {
devtoolNamespace: 'wp',
filename: `[name]${
baseConfig.mode === 'production' ? '.min' : ''
}.js`,
filename: '[name].min.js',
library: {
type: 'module',
},
Expand Down

0 comments on commit b912d8c

Please sign in to comment.