mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
refactor: change splitChunks file name to vendor.hash.js
This commit is contained in:
parent
096e22affd
commit
365a6adc35
@ -82,7 +82,8 @@ module.exports = function webpackClientConfig() {
|
||||
// Optimization
|
||||
config.optimization = {
|
||||
splitChunks: {
|
||||
chunks: 'all'
|
||||
chunks: 'all',
|
||||
filename: this.getFileName('vendor')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -206,6 +206,7 @@ Options.defaults = {
|
||||
filenames: {
|
||||
css: '[name].[contenthash].css',
|
||||
manifest: 'manifest.[hash].js',
|
||||
vendor: 'vendor.[chunkhash].js',
|
||||
app: '[name].[chunkhash].js',
|
||||
chunk: '[name].[chunkhash].js'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user