Closed ysfada closed 4 years ago
Very helpful! It prevents to build for each instance when we run npm run start
in production!
Can you please merge it @Atinux? 😁🙏🏻
Little warning about this PR: it will also overwrite app.context.env.NODE_ENV
and cause trouble if you want to share the real env with the client in a pre-built bundle.
A workaround would be to rely on a IS_BUILD
env var.
"build": "cross-env IS_BUILD=1 node ./ace nuxtbuild",
if (dev || Env.get('IS_BUILD') === '1')
return new Builder(this.nuxt).build()
90