Closed zangrafx closed 8 years ago
Problem: Despite setting environment variable to production gore-gulp takes dev react build instead of prod react build.
What I did:
SET NODE_ENV=production gulp webpack
SET NODE_ENV=production
gulp webpack
What I got:
finished "webpack.production" - OK there are react debug warnings in console - NOT OK
I've found easy solution in this article http://dev.topheman.com/make-your-react-production-minified-version-with-webpack/ hence my pull request
Problem: Despite setting environment variable to production gore-gulp takes dev react build instead of prod react build.
What I did:
SET NODE_ENV=production
gulp webpack
What I got:
finished "webpack.production" - OK there are react debug warnings in console - NOT OK