Skip to content

Newbie Questions #2

@andymagill

Description

@andymagill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions