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: 8 months ago
JSON representation
Use the Stylus compiler to build .styl files from source
- Host: GitHub
- URL: https://github.com/fansenze/snowpack-plugin-stylus
- Owner: fansenze
- License: mit
- Created: 2020-08-07T10:42:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T02:12:08.000Z (over 5 years ago)
- Last Synced: 2025-06-27T00:57:39.896Z (12 months ago)
- Topics: css, snowpack, snowpack-plugin, style, stylus
- Language: TypeScript
- Homepage:
- Size: 384 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 */ }
]
]
}
```