From 6e2b37a7c67f8f7b34580d1bc0ff2eab042d6c2a Mon Sep 17 00:00:00 2001 From: Clark Du Date: Sat, 27 Jan 2018 23:48:42 +0800 Subject: [PATCH] test: csp, maxChunkSize and ignore generateConfig --- lib/builder/builder.js | 3 ++- test/fixtures/with-config/nuxt.config.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index b27009579b..32fd3a32e1 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -689,7 +689,8 @@ module.exports = class Builder { await this.webpackDevMiddleware.close() } - async generateConfig() { + // TODO: remove ignore when generateConfig enabled again + async generateConfig() /* istanbul ignore next */ { const config = resolve(this.options.buildDir, 'build.config.js') const options = _.omit(this.options, Options.unsafeKeys) await writeFile( diff --git a/test/fixtures/with-config/nuxt.config.js b/test/fixtures/with-config/nuxt.config.js index 144a3a7c77..e427b91100 100644 --- a/test/fixtures/with-config/nuxt.config.js +++ b/test/fixtures/with-config/nuxt.config.js @@ -43,6 +43,7 @@ module.exports = { build: { stats: false, publicPath: '/orion/', + maxChunkSize: 300000, analyze: { analyzerMode: 'disabled', generateStatsFile: true @@ -63,6 +64,7 @@ module.exports = { }, css: [{ src: '~/assets/app.css' }], render: { + csp: true, http2: { push: true, shouldPush: (file, type) => type === 'script'