Registry / devops / snowpack-plugin-stylus

snowpack-plugin-stylus

JSON →
library1.0.6jsnpmunverified

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.

npm install snowpack-plugin-stylus
INSTALL
IMPORT
SIG · SNOWPACK-PLUGIN-ST
S
snowpack-plugin-stylus
devopsjavascriptv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

snowpack-plugin-stylus
Add to Snowpack config as a plugin string or array (see quickstart)
import snowpackPluginStylus from 'snowpack-plugin-stylus'
This package is a plugin, not a library; it's used declaratively in Snowpack config, not imported in code.

Configures Snowpack to compile .styl files via the Stylus plugin with custom render options.

// snowpack.config.js module.exports = { plugins: [ [ 'snowpack-plugin-stylus', { // Optional Stylus render options (e.g., compress, use, define) compress: true, // define: { $primary: '#09f' } } ] ] };
Debug
Known issues
gotchaStylus must be installed as a peer dependency; missing it causes build errors.
fix
Run 'npm install --save-dev stylus'
affects: >=1.0.0
deprecatedSnowpack is in maintenance mode; consider migrating to other build tools.
fix
Use Vite or another build system with its own Stylus support.
affects: *
Errors
Common errors & fixes
Cannot find module 'stylus'
Stylus peer dependency not installed
fix
npm install --save-dev stylus
[snowpack] Plugin "snowpack-plugin-stylus" not found
Plugin package not installed
fix
npm install --save-dev snowpack-plugin-stylus
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies
stylusrequiredRequired peer dependency for Stylus compilation
Agent activity
7 hits · last 30 days
node
4
OpenAI (training)
2
Resources
snowpack-plugin-stylus — npm install snowpack-plugin-stylus · libregistry