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

webpack 优化记 #1

Open
dengwanc opened this issue Feb 11, 2018 · 6 comments
Open

webpack 优化记 #1

dengwanc opened this issue Feb 11, 2018 · 6 comments

Comments

@dengwanc
Copy link
Owner

dengwanc commented Feb 11, 2018

使用 webpack cli 分析耗时

webpack --config webpack.config.dev.js -w --profile --progress

使用可视化工具分析包体积

结论

赞赏如果您觉得此文有帮助,可以描二维码打赏点钱给我

@zav8
Copy link

zav8 commented Aug 21, 2018

你好,我最近遇到了类似的问题,没找到该怎么解决

使用 webpack3 提高性能(优化掉 advanced module optimization 阶段)

用的是webpack3,这个阶段怎么做可以优化掉呢?

@dengwanc
Copy link
Owner Author

@zav8 升级到 webpack 3 即可

@zav8
Copy link

zav8 commented Aug 25, 2018

是用的3呢,可是这个阶段还是会占用80%的时间(⊙﹏⊙)

@7boy
Copy link

7boy commented Mar 12, 2019

是用的3呢,可是这个阶段还是会占用80%的时间(⊙﹏⊙)

现在解决了吗

@zav8
Copy link

zav8 commented Mar 12, 2019

现在解决了吗

没有,尝试过一些优化策略,但还是不能解决这个问题。之前那个项目太复杂,新的项目也没有遇到这个问题

@dengwanc dengwanc reopened this Mar 12, 2019
@dengwanc
Copy link
Owner Author

现在解决了吗

没有,尝试过一些优化策略,但还是不能解决这个问题。之前那个项目太复杂,新的项目也没有遇到这个问题

大多数问题,都藏在纷繁复杂的项目中,以至于靠人已经搞不定了

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