mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Add manifest
This commit is contained in:
parent
494364604d
commit
617999a60a
@ -47,6 +47,7 @@ const defaults = {
|
||||
analyze: false,
|
||||
publicPath: '/_nuxt/',
|
||||
filenames: {
|
||||
manifest: 'manifest.[hash].js',
|
||||
vendor: 'vendor.bundle.[hash].js',
|
||||
app: 'nuxt.bundle.[chunkhash].js'
|
||||
},
|
||||
|
@ -56,6 +56,11 @@ export default function () {
|
||||
name: 'vendor',
|
||||
filename: this.options.build.filenames.vendor
|
||||
}),
|
||||
// Extract manifest
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
name: 'manifest',
|
||||
filename: this.options.build.filenames.manifest
|
||||
}),
|
||||
// Generate output HTML
|
||||
new HTMLPlugin({
|
||||
template: this.options.appTemplatePath
|
||||
|
Loading…
Reference in New Issue
Block a user