gatsby-plugin-stylable
Gatsby plugin for enabling wix/stylable support.
Install
npm install --save stylable gatsby-plugin-stylable
How to use
Just install this plugin alongside stylable
and enable it in your gatsby-config.js
.
module.exports = {
plugins: [`gatsby-plugin-stylable`],
}
If you have any other plugins that add CSS loaders to your Webpack config, make sure to place this plugin after them.
If you want to configure @stylable/webpack-plugin
, you may pass additional configuration (experimentalHMR
is enabled by default):
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-stylable`,
options: {
experimentalHMR: false,
},
},
],
}
Options
This plugin support any configuration options available to @stylable/webpack-plugin
. For a full list, see here.
License
Copyright © 2019 Aaron Ross. Use of this project is governed by an ISC license.