Skip to content

Webpack config with production flag #42

Open
@chillichicken

Description

@chillichicken

In your webpack.config.js it's better to also add the one liner here in the production section:

new webpack.DefinePlugin({
        'process.env': {
            NODE_ENV: JSON.stringify('production')
        }
    }),

Reasons are found here:

https://facebook.github.io/react/docs/optimizing-performance.html#use-the-production-build

Thanks for all your tutorials btw, I learned a lot !

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