Gatsby: Adding gatsby-plugin-netlify-cms in a monorepo slows down the build time

Created on 7 Oct 2019  路  7Comments  路  Source: gatsbyjs/gatsby

Description

In a monorepo project, adding gatsby-plugin-netlify-cms slows down the "Building production JavaScript and CSS bundles" step.

Removing "gatsby-plugin-netlify-cms" from example/atsby-config.js brings build time back to normal.

Steps to reproduce

Expected result

The project should build within 5 seconds.

Actual result

It takes 15-30sec.

Environment

  System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
  Languages:
    Python: 2.7.10 - /usr/bin/python
  Browsers:
    Chrome: 77.0.3865.90
    Firefox: 60.9.0
    Safari: 13.0.1
  npmGlobalPackages:
    gatsby-cli: 2.7.30
help wanted bug

Most helpful comment

Awesome work. My build time dropped from 110sec to 70sec. That's amazing 馃殌

All 7 comments

This becomes even more important now that Netlify will start to charge for build minutes.

Maybe @erquhart can help with that.

@erezrokah this issue is our first target when we start digging into the Gatsby integration.

Related to #14418.

Hiya!

This issue has gone quiet. Spooky quiet. 馃懟

We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 馃挭馃挏

This is already prioritized by the netlify cms team. We should keep it open

I'm actively working on this issue (and all the other plugin related issues).
Currently trying to include netlify-cms-app and netlify-identity-widget as external dependencies to avoid having Webpack re-optimzing them.

Awesome work. My build time dropped from 110sec to 70sec. That's amazing 馃殌

Was this page helpful?
0 / 5 - 0 ratings

Related issues

totsteps picture totsteps  路  3Comments

theduke picture theduke  路  3Comments

andykais picture andykais  路  3Comments

jimfilippou picture jimfilippou  路  3Comments

mikestopcontinues picture mikestopcontinues  路  3Comments