Skip to content

Commit

Permalink
refactor(core): use optimization.moduleids variant;
Browse files Browse the repository at this point in the history
- easier to disable
  • Loading branch information
lukeed committed Mar 31, 2020
1 parent c68f509 commit 38c02fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ module.exports = function (src, config, opts) {
new HTML(toHTMLConfig(src, opts))
].concat(styles.plugins, isProd ? [
new CopyAssets(src, null, { log: opts.log }),
new webpack.HashedModuleIdsPlugin(),
new webpack.LoaderOptionsPlugin({ minimize:true })
new webpack.LoaderOptionsPlugin({ minimize: true })
] : [
new webpack.NamedModulesPlugin(),
new webpack.HotModuleReplacementPlugin()
]),
optimization: {
moduleIds: 'hashed',
minimizer: [
new Terser(terser),
new OptimizeCSS({})
Expand Down

0 comments on commit 38c02fe

Please sign in to comment.