Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建速度优化,babel-loader 打开 cache,删除一小段冗余代码 #82

Merged
merged 2 commits into from
Jan 15, 2021

Conversation

beanlee
Copy link
Member

@beanlee beanlee commented Jan 15, 2021

RT

@beanlee beanlee requested a review from loveky January 15, 2021 08:14
@loveky loveky merged commit 59cb563 into jdf2e:master Jan 15, 2021
@beanlee
Copy link
Member Author

beanlee commented Jan 15, 2021

补充一点实际项目优化前后的数据

os osx 14
node 12.20.1


优化前

yarn dev

耗时

  1. 36.49s
  2. 33.87s
  3. 40.32s
  4. 35.95s

yarn build

耗时

  1. 105.15s
  2. 53.03s
  3. 51.50s

优化后

yarn dev

耗时

  1. 38.30s
  2. 18.00s
  3. 16.28s

yarn build

提升不明显

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants