How to Run Webpack to Build for Production #812

Closed
opened 2025-08-09 17:17:46 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @uNkNowN92-git on 4/22/2017

I've been trying to figure out how to make webpack build for production.

I added some console.log to check the values of variables like below:

const isDevBuild = !(env && env.prod);
console.log(isDevBuild);
console.log(env);

And the output is:

true
undefined
  1. Can anyone show me how to run webpack to build production files?
*Originally created by @uNkNowN92-git on 4/22/2017* I've been trying to figure out how to make webpack build for production. I added some `console.log` to check the values of variables like below: ```javascript const isDevBuild = !(env && env.prod); console.log(isDevBuild); console.log(env); ``` And the output is: ```js true undefined ``` 1. Can anyone show me how to run webpack to build production files?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#812
No description provided.