chore: fix lint errors

This commit is contained in:
Pooya Parsa 2021-01-22 22:34:23 +01:00
parent faabd1ab54
commit 9c4a14074c
2 changed files with 1 additions and 7 deletions

View File

@ -5,6 +5,7 @@ async function _main () {
const args = process.argv.splice(2) const args = process.argv.splice(2)
const cmd = args[0] const cmd = args[0]
if (!['dev', 'build'].includes(cmd)) { if (!['dev', 'build'].includes(cmd)) {
// eslint-disable-next-line no-console
console.error('Usage nuxt dev|build [rootDir]') console.error('Usage nuxt dev|build [rootDir]')
process.exit(1) process.exit(1)
} }

View File

@ -98,13 +98,6 @@ function clientPlugins (ctx: WebpackConfigContext) {
...options.build.analyze as any ...options.build.analyze as any
})) }))
} }
// CORS
if (ctx.options.render.crossorigin) {
ctx.config.plugins.push(new CorsPlugin({
crossorigin: ctx.options.render.crossorigin
}))
}
} }
function getCspScriptPolicy (ctx: WebpackConfigContext) { function getCspScriptPolicy (ctx: WebpackConfigContext) {