Hi Samie,
I just followed along on your LevelUp article. I'm new to react and I'm hoping you can answer some questions.
How do you run the production build of the project? Is this sufficient :
webpack-dev-server --mode production --hot
Also, running the build script on my windows machine, returns an error "NODE_ENV is not recognized..." The workaround I found was this : set NODE_ENV='production' && webpack --mode=production . Doesn't this mean that NODE_ENV will always be "production" ?
Also just FYI, 'optimization' is missing from the walkthrough portion of the article.
Hi Samie,
I just followed along on your LevelUp article. I'm new to react and I'm hoping you can answer some questions.
How do you run the production build of the project? Is this sufficient :
webpack-dev-server --mode production --hotAlso, running the build script on my windows machine, returns an error "NODE_ENV is not recognized..." The workaround I found was this :
set NODE_ENV='production' && webpack --mode=production. Doesn't this mean that NODE_ENV will always be "production" ?Also just FYI, 'optimization' is missing from the walkthrough portion of the article.