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

webpack4中每次修改app.js时dll会重新打包 #132

Open
yilingsj opened this issue Jun 10, 2019 · 1 comment
Open

webpack4中每次修改app.js时dll会重新打包 #132

yilingsj opened this issue Jun 10, 2019 · 1 comment

Comments

@yilingsj
Copy link

webpack -v 4.31.0
我遇到了一个问题,当我执行
webpack-dev-server --mode=development --config demo-autodll-webpack-plugin.config.js
后,dll文件可以生成,当我修改app.js中的代码时,dll又会重新生成
如图:每次修改app.js中的代码时,dll会重新打包

AutoDllPlugin的配置

@CJY0208
Copy link
Contributor

CJY0208 commented Aug 31, 2019

filename 增加 chunkhash 确认一下包内容是否发生了变化?

增量构建时间只花费了 120ms ,而你的 dll 插件需要处理的内容还是少的,如果进行了 auto-dll 处理的话不可能只花费这么点时间

我猜测并未进行 auto-dll 处理,你看到的输出有可能只是 webpack 默认对构建结果的展示

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

2 participants