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

What's manifest.js handle in aid of? #378

Closed
ytudt opened this issue Mar 1, 2017 · 2 comments
Closed

What's manifest.js handle in aid of? #378

ytudt opened this issue Mar 1, 2017 · 2 comments

Comments

@ytudt
Copy link

ytudt commented Mar 1, 2017

In vue-cli webpack.prod.conf.js there are some code like this

 new webpack.optimize.CommonsChunkPlugin({
      name: 'manifest',
      chunks: ['vendor']
    })

and generate a manifest.js file what js should i put in this file?
中国人用汉语回答更好。。。。

@LinusBorg
Copy link
Member

https://webpack.js.org/guides/code-splitting-libraries/#manifest-file

@yyyuuu777
Copy link

manifest 文件定义了 vendor.js 内部模块的管理, 尽可能使vendor.js 保持不变(vendor js通常比较大变动不利于缓存) , 需要在vendor.js 引入前,引入到html中

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