See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

gatsby-plugin-split-css

Overrides the default webpack config to split the css into chunks

Install

$ npm install gatsby-plugin-split-css

Configure

Note: add this plugin after all PostCSS/Sass/Less plugins.

// gatsby-config.js

module.exports = {
  plugins: [
    `gatsby-plugin-split-css`
  ],
}

License

The MIT License

© 2022 Gatsby, Inc.