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

fix: use html-webpack-plugin-for-multihtml to increase compilation speed #5

Merged
merged 1 commit into from Sep 3, 2018

Conversation

hacke2
Copy link
Contributor

@hacke2 hacke2 commented Sep 3, 2018

resolve https://github.com/weexteam/weex-toolkit/issues/315

If we have many vue component. It will so slow when a minor change.

The reason is that every component of weex will generate a page, and each time HtmlWebpackPlugin is modified, it will analyze whether there is a file to modify.

For example, there are 30 files in my project.

Before optimization:

image

After optimization:

image

Speed increased by 95%!!! 🎉

Copy link
Contributor

@erha19 erha19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The html-webpack-plugin-for-multihtml module can't be found in the package.json, it will cause an error about cannot find module 'html-webpack-plugin-for-multihtml'.

template/package.json Outdated Show resolved Hide resolved
@weiweiwei256
Copy link

@hacke2 Is There any details for using html-webpack-plugin-fro-multihtml? Demo code.
I have same issue.

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.

最新的模板。运行npm start webpack asset optimization 花很长时间
3 participants