Skip to content

Commit

Permalink
同步分支---antd-dva中修复的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuqing650 committed May 21, 2018
1 parent 30a6fcc commit 937f56b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
- 8. 添加新分支`antd-dva`,配置 `webpack` + `dva`
- 9. 添加 `axios`
- 10. 添加 `mockjs`
- 11. 修复错误日志不显示在屏幕的问题
- 12. 调整开发模式的控制台日志显示,关闭 `modules: false`
- 13. 调整构建模块信息.展示运行进度 `--progress`
## 多线程打包测试结果
|状态|是否开启多线程|首次运行(ms)|再次运行(ms)|三次运行(ms)|四次(ms)|五次运行(ms)|
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"betterScripts": {
"start": {
"command": "webpack-dev-server --open --config webpack.config.js",
"command": "webpack-dev-server --progress --open --config webpack.config.js",
"env": {
"NODE_PATH": "./src",
"NODE_ENV": "development",
"PORT": 3300
}
},
"build": {
"command": "webpack --config webpack.config.js",
"command": "webpack --progress --config webpack.config.js",
"env": {
"NODE_PATH": "./src",
"NODE_ENV": "production",
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const nodeEnv = process.env.NODE_ENV || 'development';
const isDev = nodeEnv !== 'production';
const ASSET_PATH = process.env.ASSET_PATH || '/';

const isHappy = true; // 开启多线程打包
const isHappy = !isDev; // 开启多线程打包
const eslint = true;
const stylelint = false;

Expand Down Expand Up @@ -196,6 +196,11 @@ module.exports = {
historyApiFallback: true,
headers: {
'maby': 'demo'
},
overlay: true,
stats: {
color: true,
modules: false
}
},
plugins: getPlugins(),
Expand Down

0 comments on commit 937f56b

Please sign in to comment.