mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
test: csp, maxChunkSize and ignore generateConfig
This commit is contained in:
parent
833f23ca76
commit
6e2b37a7c6
@ -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(
|
||||
|
2
test/fixtures/with-config/nuxt.config.js
vendored
2
test/fixtures/with-config/nuxt.config.js
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user