You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
sapper build is hard coded to set NODE_ENV to production.
This makes it impossible to do atleast two things,
Deploy an unoptimized/minified build of the application
Use the webpack config files to configure settings for different environments (using dotenv or Webpack.DefinePlugin or similar text replace tools) because process.env.NODE_ENV within the webpack files is always production.
I think a reasonable change is to have sapper build use whatever NODE_ENV is set to and if it doesn't exist, use production by default?
The text was updated successfully, but these errors were encountered:
sapper build
is hard coded to setNODE_ENV
toproduction
.This makes it impossible to do atleast two things,
dotenv
orWebpack.DefinePlugin
or similar text replace tools) becauseprocess.env.NODE_ENV
within the webpack files is alwaysproduction
.I think a reasonable change is to have
sapper build
use whateverNODE_ENV
is set to and if it doesn't exist, useproduction
by default?The text was updated successfully, but these errors were encountered: