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