Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): add react minification support #2754

Closed
wants to merge 1 commit into from

Conversation

filipesilva
Copy link
Contributor

Fix #2110

@@ -24,6 +24,9 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf
},
plugins: [
new WebpackMd5Hash(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': '\'production\''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks a bit odd. Perhaps use JSON.stringify() instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, changing it.

@filipesilva
Copy link
Contributor Author

@Brocco I also had to fix the node vars used by test builds and reduce duplication to ensure all builds had the same ones.

filipesilva added a commit that referenced this pull request Oct 18, 2016
kieronqtran pushed a commit to kieronqtran/angular-cli that referenced this pull request Oct 21, 2016
@filipesilva filipesilva deleted the add-react-env branch October 22, 2016 13:59
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request - set NODE_ENV="production" on prod build/serve
4 participants