{"id":26407,"library":"snowpack-plugin-stylus","title":"Snowpack Plugin Stylus","description":"A Snowpack plugin that compiles .styl files into CSS using the Stylus preprocessor. Version 1.0.6 is the latest stable release, with no update cadence reported. It integrates into Snowpack's build pipeline, supporting custom Stylus render options. Compared to other Stylus plugins for different bundlers, this is specific to Snowpack and requires minimal configuration.","status":"active","version":"1.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/fansenze/snowpack-plugin-stylus","tags":["javascript","snowpack","stylus","css","style","snowpack-plugin"],"install":[{"cmd":"npm install snowpack-plugin-stylus","lang":"bash","label":"npm"},{"cmd":"yarn add snowpack-plugin-stylus","lang":"bash","label":"yarn"},{"cmd":"pnpm add snowpack-plugin-stylus","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency for Stylus compilation","package":"stylus","optional":false}],"imports":[{"note":"This package is a plugin, not a library; it's used declaratively in Snowpack config, not imported in code.","wrong":"import snowpackPluginStylus from 'snowpack-plugin-stylus'","symbol":"snowpack-plugin-stylus","correct":"Add to Snowpack config as a plugin string or array (see quickstart)"}],"quickstart":{"code":"// snowpack.config.js\nmodule.exports = {\n  plugins: [\n    [\n      'snowpack-plugin-stylus',\n      {\n        // Optional Stylus render options (e.g., compress, use, define)\n        compress: true,\n        // define: { $primary: '#09f' }\n      }\n    ]\n  ]\n};","lang":"javascript","description":"Configures Snowpack to compile .styl files via the Stylus plugin with custom render options."},"warnings":[{"fix":"Run 'npm install --save-dev stylus'","message":"Stylus must be installed as a peer dependency; missing it causes build errors.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use Vite or another build system with its own Stylus support.","message":"Snowpack is in maintenance mode; consider migrating to other build tools.","severity":"deprecated","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev stylus","cause":"Stylus peer dependency not installed","error":"Cannot find module 'stylus'"},{"fix":"npm install --save-dev snowpack-plugin-stylus","cause":"Plugin package not installed","error":"[snowpack] Plugin \"snowpack-plugin-stylus\" not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}