https://github.com/afaur/babel-plugin-stylus-basic
https://github.com/afaur/babel-plugin-stylus-basic
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/afaur/babel-plugin-stylus-basic
- Owner: afaur
- Created: 2017-04-30T11:24:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T08:06:56.000Z (about 9 years ago)
- Last Synced: 2025-02-12T13:56:58.144Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-stylus-basic
Replaces stylus with css.
## Usage
Install the package:
```bash
$ npm install --save afaur/babel-plugin-stylus-basic
```
Add `babel-plugin-stylus-basic` to `plugins` in the babel config:
```json
{
"plugins": [
"babel-plugin-stylus-basic"
]
}
```
When you write code that looks like this:
```js
var css = 'styl/style.styl';
```
The plugin will generate css from the contents of the stylus file.