diff --git a/lib/build.js b/lib/build.js index 43e664aeb4..10dd0f49c9 100644 --- a/lib/build.js +++ b/lib/build.js @@ -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' }, diff --git a/lib/webpack/client.config.js b/lib/webpack/client.config.js index 7e40a22d29..75a69cbf54 100644 --- a/lib/webpack/client.config.js +++ b/lib/webpack/client.config.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