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(gatsby-plugin-netlify-cms): Fix minimizer for production builds with gatsby-plugins-netlify-cms #14783

Merged
merged 1 commit into from
Jun 14, 2019
Merged

fix(gatsby-plugin-netlify-cms): Fix minimizer for production builds with gatsby-plugins-netlify-cms #14783

merged 1 commit into from
Jun 14, 2019

Conversation

emanueleperuffo
Copy link
Contributor

Description

When building for production with gatsby-plugin-netlify-cms, node hangs at 'Building production JavaScript and CSS bundles', eventually throwing an out of memory error.

I found out that the problem is with Webpack 'minimize'.

Using the minimizer setting from the original Webpack configuration of Gatsby fixes the issue.

Related Issues

Possibly related to and fixes #14418

@emanueleperuffo emanueleperuffo requested a review from a team as a code owner June 14, 2019 08:14
@freiksenet freiksenet changed the title Fix minimizer for production builds with gatsby-plugins-netlify-cms fix(gatsby-plugin-netlify-cms): Fix minimizer for production builds with gatsby-plugins-netlify-cms Jun 14, 2019
@freiksenet freiksenet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jun 14, 2019
@gatsbybot gatsbybot merged commit 1520e4a into gatsbyjs:master Jun 14, 2019
@jcppman
Copy link

jcppman commented Jun 14, 2019

this PR breaks my yarn start because webpack config does not have the property optimization at all.

It will cause TypeError: Canno read property 'minimizer' of undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building JS and CSS bundles for 5 pages takes 88.374s
4 participants