JSPM

snowpack-plugin-stylus

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8651
  • Score
    100M100P100Q131100F
  • License MIT

Use the Stylus compiler to build .styl files from source

Package Exports

  • snowpack-plugin-stylus

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snowpack-plugin-stylus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

snowpack-plugin-stylus

Use the Stylus compiler to build .styl files from source

Usage

Install

npm install --save-dev snowpack-plugin-stylus

Config

add this plugin to your Snowpack config:

snowpack.config.json

{
  "plugins": [
    "snowpack-plugin-stylus"
  ]
}

Use Custom Stylus Compile Options

snowpack.config.js

const path = require("path");

module.exports = {
  // ...another config
  "plugins": [
    [
      "snowpack-plugin-stylus",
      { /* stylus render options */ }
    ]
  ]
}