From 2c1473c2330410ca558bc7514d1c5ab485638cce Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 18 Aug 2017 17:36:46 +0430 Subject: [PATCH] disable minify on build generate --- bin/nuxt-build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/nuxt-build b/bin/nuxt-build index eb567ebc13..dc0a23fdee 100755 --- a/bin/nuxt-build +++ b/bin/nuxt-build @@ -74,8 +74,10 @@ builder.build() .then(() => { debug('Building done') if (options.mode === 'spa') { - // Generate on spa mode - return new Generator(nuxt, builder).generate({ build: false }).then(() => { + // Disable minify to get exact results of nuxt start + nuxt.options.generate.minify = false + // Generate on SPA mode + return new Generator(nuxt, builder).generate({ build: false, minify: false }).then(() => { if (!nuxt.options.dev) { // eslint-disable-next-line no-console console.log(`✓ You can now directly upload ${nuxt.options.generate.dir}/ or start server using "nuxt start"`)