Skip to content

Why is there warning about using only minified dev build of react? #50

Open
@vladimirpekez

Description

@vladimirpekez

Hi

After running:

npm run build

in my browser I get the following message:

app.js:1 Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.

Shouldn't npm run build take care of this?

In package JSON I can see production webpack config is used:
...
"scripts": {
...
"build": "webpack -p --progress --config webpack.production.config.js",

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions