mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25: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 = {
|
||||
dev: true,
|
||||
env: {},
|
||||
head: {},
|
||||
head: {
|
||||
meta: [],
|
||||
link: [],
|
||||
style: [],
|
||||
script: []
|
||||
},
|
||||
plugins: [],
|
||||
css: [],
|
||||
modules: [],
|
||||
@ -50,7 +55,11 @@ class Nuxt {
|
||||
webpack: {},
|
||||
chokidar: {}
|
||||
},
|
||||
build: {}
|
||||
build: {
|
||||
postcss: [],
|
||||
vendor: [],
|
||||
plugins: []
|
||||
}
|
||||
}
|
||||
// Sanitization
|
||||
if (options.loading === true) delete options.loading
|
||||
|
Loading…
Reference in New Issue
Block a user