gatsby-plugin-stylus-resources-mini
Stylus resources (e.g. variables, mixins etc.) plugin for Gatsby
Install
npm install --save gatsby-plugin-stylus gatsby-plugin-stylus-resources-mini
How to use
- Include the plugin in your
gatsby-config.js
file. - Write your resources stylesheets in
.styl
and include it in the resources list in the options as shown below.
// in gatsby-config.js
plugins: [{
resolve: `gatsby-plugin-stylus-resources-mini`,
options: {
resources: ['./path/to/*.styl']
}
}]
Inspired by gatsby-plugin-stylus-resources Built using sass-resources-loader