Skip to content
A GatsbyJS starter template that leverages the WordPress API, ACF and more
Branch: master
Clone or download
chmac Merge pull request #41 from anantoghosh/purgecss
Update and configure gatsby-plugin-purgecss.
Latest commit 4f85397 Mar 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Bugfix. Use `slug` as `key`. Nov 5, 2018
static/img
.browserslistrc Copy gatsby-starter-netlify-cms Oct 4, 2018
.codeclimate.yml Copy gatsby-starter-netlify-cms Oct 4, 2018
.eslintignore
.eslintrc.json Linting tweaks. Most errors gone now. Oct 4, 2018
.gitignore
.stylelintrc
LICENSE
README.md Add upgrade warning. Dec 19, 2018
gatsby-config.js Add purgecss options Mar 8, 2019
gatsby-node.js BUGFIX. We need the `status` field for production. Nov 30, 2018
netlify.toml
package-lock.json
package.json
renovate.json
yarn.lock Update yarn.lock for gatsby-plugin-purgecss Mar 8, 2019

README.md

Gatsby v2 WordPress Starter

This starter is forked from the gatsby-starter-netlify-cms and modified to use WordPress instead of netlify-cms.

Demo: https://gatsby-starter-wordpress.netlify.com/

WARNING: Using yarn upgrade or npm update will break the site. See GatsbyCentral/gatsby-starter-wordpress#36 and gatsbyjs/gatsby#10262 for more info. Hopefully we'll have a resolution soon. - 19 Dec 2018

Use it now

gatsby new NAME https://github.com/GatsbyCentral/gatsby-starter-wordpress
  • Edit gatsby-config.js, change baseUrl
    • Make sure you have at least 1 post and 1 page on your WordPress site
    • Make sure at least 1 post has at least 1 tag
  • Rejoice

Known Limitations

CSS Processing

This plugin uses gatsby-plugin-purgecss and bulma. The bulma build would otherwise be ~170K which adds 170K to each of your built HTML pages. However, with purgecss this is reduced 90%.

Contributors

This starter was forked from the netlify starter by the GatsbyCentral crew. Additional contributions were gratefully received from the following folks:

You can’t perform that action at this time.