mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
disable minify on build generate
This commit is contained in:
parent
d589bc5819
commit
2c1473c233
@ -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"`)
|
||||
|
Loading…
Reference in New Issue
Block a user