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 4 动态切割JS注入文件名 #194

Open
ckinmind opened this issue Aug 26, 2019 · 0 comments
Open

关于Webpack 4 动态切割JS注入文件名 #194

ckinmind opened this issue Aug 26, 2019 · 0 comments

Comments

@ckinmind
Copy link
Owner

ckinmind commented Aug 26, 2019

问题描述:webpack默认打出的chunk文件是1.js 2.js这样的方式,如果想自己命名打出的chunk文件名,可以用一个webpack提供的方式

 const module = await import(/* webpackChunkName:'test' */'./test')

打出来的chunk文件名叫test.js

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

1 participant