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

This plugin reduces webpack packaging speed #43

Closed
rumsky opened this issue Sep 4, 2018 · 3 comments
Closed

This plugin reduces webpack packaging speed #43

rumsky opened this issue Sep 4, 2018 · 3 comments

Comments

@rumsky
Copy link

rumsky commented Sep 4, 2018

Before add this plugin my webpack bundle duration is 5000ms ,after add this plugin my webpack bundle duration is 9000-10000ms .
How can I increase the speed,after add this plugin.

@prncc
Copy link
Contributor

prncc commented Sep 4, 2018

Hi there,

There's some related discussion here: #39 I wrote there:

The plugin does a lot of work on the initial render because it has to parse and compile the theme.scss file, extract the variables, inject them into antd's theme file to generate an SCSS theme and make it available to the locally running app. The good news is that this should only happen again when you change the theme file, so it should not affect future re-compilations (thanks to registering the theme with Webpack).

With that said, is this something that keeps happening for you after the first render? Is the only thing that causes the slowdown adding .themify() and the plugin to Webpack's plugins array?

@prncc
Copy link
Contributor

prncc commented Nov 13, 2018

I'm going to close this for now, but please feel free to reopen if you regain interest.

@prncc prncc closed this as completed Nov 13, 2018
@davidfurlong
Copy link

Either we're using this plugin wrong or theres no caching. This plugin adds 10s to our build and 5s to all incremental builds

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

No branches or pull requests

3 participants