mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
chore: fix lint errors
This commit is contained in:
parent
faabd1ab54
commit
9c4a14074c
@ -5,6 +5,7 @@ async function _main () {
|
||||
const args = process.argv.splice(2)
|
||||
const cmd = args[0]
|
||||
if (!['dev', 'build'].includes(cmd)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Usage nuxt dev|build [rootDir]')
|
||||
process.exit(1)
|
||||
}
|
||||
|
@ -98,13 +98,6 @@ function clientPlugins (ctx: WebpackConfigContext) {
|
||||
...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) {
|
||||
|
Loading…
Reference in New Issue
Block a user