Skip to content

Commit

Permalink
feat: namedModules and namedChunks default set true
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Nov 13, 2018
1 parent 1c4e556 commit b5bc5d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/optimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ module.exports = class WebpackOptimize {
getWebOptimization() {
const optimization = this.normalizeMinimizer();
return this.ctx.merge({
namedModules: true,
namedChunks: true,
runtimeChunk: {
name: 'runtime'
},
splitChunks: {
name: true,
name: false,
chunks: 'all',
minSize: this.lib ? 1 : 10000,
minChunks: this.lib ? 1 : 2,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easywebpack",
"version": "4.9.6",
"version": "4.10.0-rc.2",
"description": "基于 Webpack 的前端构建工程化解决方案",
"keywords": [
"webpack",
Expand Down

0 comments on commit b5bc5d3

Please sign in to comment.