An open API service indexing awesome lists of open source software.

https://github.com/fansenze/snowpack-plugin-stylus

Use the Stylus compiler to build .styl files from source
https://github.com/fansenze/snowpack-plugin-stylus

css snowpack snowpack-plugin style stylus

Last synced: 10 days ago
JSON representation

Use the Stylus compiler to build .styl files from source

Awesome Lists containing this project

README

        

# snowpack-plugin-stylus
Use the [Stylus](https://github.com/stylus/stylus) compiler to build `.styl` files from source

## Usage

### Install
```bash
npm install --save-dev snowpack-plugin-stylus
```

### Config
add this plugin to your Snowpack config:

**snowpack.config.json**
```json
{
"plugins": [
"snowpack-plugin-stylus"
]
}
```

### Use Custom Stylus Compile Options
**snowpack.config.js**
```javascript
const path = require("path");

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