mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
defaults deep options
This will help modules easily append to options without need to checking and creating arrays.
This commit is contained in:
parent
5662aa22f7
commit
ffefa6d724
13
lib/nuxt.js
13
lib/nuxt.js
@ -18,7 +18,12 @@ class Nuxt {
|
|||||||
var defaults = {
|
var defaults = {
|
||||||
dev: true,
|
dev: true,
|
||||||
env: {},
|
env: {},
|
||||||
head: {},
|
head: {
|
||||||
|
meta: [],
|
||||||
|
link: [],
|
||||||
|
style: [],
|
||||||
|
script: []
|
||||||
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
css: [],
|
css: [],
|
||||||
modules: [],
|
modules: [],
|
||||||
@ -50,7 +55,11 @@ class Nuxt {
|
|||||||
webpack: {},
|
webpack: {},
|
||||||
chokidar: {}
|
chokidar: {}
|
||||||
},
|
},
|
||||||
build: {}
|
build: {
|
||||||
|
postcss: [],
|
||||||
|
vendor: [],
|
||||||
|
plugins: []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Sanitization
|
// Sanitization
|
||||||
if (options.loading === true) delete options.loading
|
if (options.loading === true) delete options.loading
|
||||||
|
Loading…
Reference in New Issue
Block a user