Skip to content

Webpack config with production flag #42

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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