Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khalidhoffman/stylus-require-css-evaluator
enables use of require with css flies in stylus
https://github.com/khalidhoffman/stylus-require-css-evaluator
stylus
Last synced: about 2 months ago
JSON representation
enables use of require with css flies in stylus
- Host: GitHub
- URL: https://github.com/khalidhoffman/stylus-require-css-evaluator
- Owner: khalidhoffman
- Created: 2017-01-10T15:54:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T22:25:29.000Z (almost 8 years ago)
- Last Synced: 2024-10-31T17:54:24.479Z (2 months ago)
- Topics: stylus
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stylus-require-css-evaluator
## What it does
Adds support for requiring css files into stylus files. Example:
```
@import 'some/other/folder/file.css';
@require 'some/other/folder/file.css';
```
will yield
```
@import 'some/other/folder/file.css';
.selector-from-some-other-folder-file.css{
content: 'the css was imported';
}```
## How to use
```
stylus(str)
.use(require('stylus-require-css-evaluator'))
.render(function(err, css){
// handle output
});
```## Installation
from NPM:`npm i stylus-require-css-evaluator`
from GitHub:
`npm i git+https://github.com/khalidhoffman/stylus-require-css-evaluator.git`