Stylus is an Expressive, dynamic and robust CSS preprocessor. With Stylus plugins, you can use Stylus as the CSS preprocessor.
You can install the plugin using the following command:
You can register the plugin in the rsbuild.config.ts file:
After registering the plugin, you can import *.styl, *.stylus, *.module.styl or *.module.stylus files into the code without adding other configs.
normalize.styl:title.module.styl:index.js:To customize the compilation behavior of Stylus, use the following options.
-Type:
undefinedOptions passed to Stylus, please refer to the Stylus documentation for specific usage.
booleanWhether to generate source map.