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
As the title says,, I'm trying to serve my environment locally with the prod settings; Doesn't work out of the box. After following the instructions on your root .md file, I've done this:
var env = process.env.MY_ENV;
// Set default environment to "dev"
env = env.trim();
console.log('>>>> chosen environment: "' + env + '"');
Doesn't seem quite right, even though the variable "prod" is shown to be properly selected via the console.log as I npm run serve:prod:win, it's still the dev file that's in use.
N.B. I don't quite understand webpack, so don't consider this an educated guess :-)
How would you approach this?
The text was updated successfully, but these errors were encountered:
Hi!
As the title says,, I'm trying to serve my environment locally with the prod settings; Doesn't work out of the box. After following the instructions on your root .md file, I've done this:
package.json
Add an npm run script:
config/webpack.config.js
Update:
Doesn't seem quite right, even though the variable "prod" is shown to be properly selected via the console.log as I
npm run serve:prod:win
, it's still the dev file that's in use.N.B. I don't quite understand webpack, so don't consider this an educated guess :-)
How would you approach this?
The text was updated successfully, but these errors were encountered: