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

打包发布包 设置chunkFilename失效 vue-cli-service build --target lib --name base --dest lib src/index.js #4469

Closed
purestart opened this issue Aug 20, 2019 · 1 comment · May be fixed by Matthelonianxl/vue-cli#11, carlosrojaso/vue-cli#34, carlosrojaso/vue-cli#36 or Matthelonianxl/vue-cli#17

Comments

@purestart
Copy link

使用命令 vue-cli-service build --target lib --name base --dest lib src/index.js 打包一个库
其中组件使用了 /* webpackChunkName: “” */分包
vue.config.js中设置了 chunkFilename

  chainWebpack: config => {
    config.output.filename('[name].js')
    config.output.chunkFilename('[name].[chunkhash:8].js')

但是打包出来的文件没有chunkhash
请问如何解决呢?

@vue-bot
Copy link

vue-bot commented Aug 20, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment