Closed yauri-io closed 4 years ago
When running
npm run build
by default, it runs production build, taking production config only because in the build.js the NODE_ENV is hardcoded. It should allowing different NODE_ENV.
Before
process.env.NODE_ENV = 'production'
After
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
When running
by default, it runs production build, taking production config only because in the build.js the NODE_ENV is hardcoded. It should allowing different NODE_ENV.
Before
After