A React-Static plugin that adds loader and SSR support for stylus
In an existing react-static site run:
$ yarn add react-static-plugin-stylus
Then add the plugin to your static.config.js
:
export default {
plugins: ["react-static-plugin-stylus"]
};
export default {
plugins: [
[
"react-static-plugin-stylus",
{
cssLoaderOptions: {}, // options for the css-loader, like modules
// other options for the stylus-loader
}
]
]
};