Use the Stylus compiler to build .styl
files from source
npm install --save-dev snowpack-plugin-stylus
add this plugin to your Snowpack config:
snowpack.config.json
{
"plugins": [
"snowpack-plugin-stylus"
]
}
snowpack.config.js
const path = require("path");
module.exports = {
// ...another config
"plugins": [
[
"snowpack-plugin-stylus",
{ /* stylus render options */ }
]
]
}