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(() => {
|
.then(() => {
|
||||||
debug('Building done')
|
debug('Building done')
|
||||||
if (options.mode === 'spa') {
|
if (options.mode === 'spa') {
|
||||||
// Generate on spa mode
|
// Disable minify to get exact results of nuxt start
|
||||||
return new Generator(nuxt, builder).generate({ build: false }).then(() => {
|
nuxt.options.generate.minify = false
|
||||||
|
// Generate on SPA mode
|
||||||
|
return new Generator(nuxt, builder).generate({ build: false, minify: false }).then(() => {
|
||||||
if (!nuxt.options.dev) {
|
if (!nuxt.options.dev) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(`✓ You can now directly upload ${nuxt.options.generate.dir}/ or start server using "nuxt start"`)
|
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