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

feat(af-webpack): enable hard-source-webpack-plugin to boost performance #490

Merged
merged 2 commits into from
May 17, 2018

Conversation

sorrycc
Copy link
Member

@sorrycc sorrycc commented May 17, 2018

umi-antd-admin 为例,dll + hard-source-webpack-plugin 后编译时间 0.9s,启动时间 7.7s。

image

FAQ

如何禁用此功能?

$ HARD_SOURCE=none umi dev

@coveralls
Copy link

coveralls commented May 17, 2018

Pull Request Test Coverage Report for Build 429

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 20.27%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/umi-plugin-dll/src/index.js 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
packages/umi-plugin-dll/src/index.js 2 0.0%
Totals Coverage Status
Change from base Build 419: -0.02%
Covered Lines: 448
Relevant Lines: 2469

💛 - Coveralls

@sorrycc sorrycc merged commit f342946 into master May 17, 2018
@sorrycc sorrycc deleted the feat/hard-source-webpack-plugin branch May 17, 2018 07:00
sorrycc pushed a commit that referenced this pull request Jun 23, 2022
* refactor(bundler-utils): use single pre-bundle express for bundlers

* refactor(mfsu): use pre-bundle express for mfsu

* refactor(server): use pre-bundle express for server

* refactor(bundler-utils): use single pre-bundle less for bundlers

* fix(bundler-vite): less module not found bug

* fix(bundler-vite): route middleware pending problem

* chore: correct pnpm-lock

* test(esbuild): correct alias case after pre-bundle less
xierenyuan pushed a commit to xierenyuan/umi that referenced this pull request Jun 23, 2022
* refactor(bundler-utils): use single pre-bundle express for bundlers

* refactor(mfsu): use pre-bundle express for mfsu

* refactor(server): use pre-bundle express for server

* refactor(bundler-utils): use single pre-bundle less for bundlers

* fix(bundler-vite): less module not found bug

* fix(bundler-vite): route middleware pending problem

* chore: correct pnpm-lock

* test(esbuild): correct alias case after pre-bundle less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants