From ffefa6d724a36c999f873e6db0e995d85975aa44 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 11 May 2017 14:12:20 +0430 Subject: [PATCH] defaults deep options This will help modules easily append to options without need to checking and creating arrays. --- lib/nuxt.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/nuxt.js b/lib/nuxt.js index ba164e9389..a29e156f70 100644 --- a/lib/nuxt.js +++ b/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