Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackbeam/sass-middleware
SASS middleware (adapted from the less-middleware)
https://github.com/blackbeam/sass-middleware
Last synced: 20 days ago
JSON representation
SASS middleware (adapted from the less-middleware)
- Host: GitHub
- URL: https://github.com/blackbeam/sass-middleware
- Owner: blackbeam
- Created: 2013-07-11T10:04:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-12T14:46:26.000Z (about 11 years ago)
- Last Synced: 2024-11-07T15:56:07.834Z (about 2 months ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## sass-middleware
Like [less-middleware](https://github.com/emberfeather/less.js-middleware) but sass-middleware.### Requirements:
1. [Sass](http://sass-lang.com/)### Installation:
```bash
# insall Sass if not installed
gem install sass
# install sass-middleware
npm install sass-middleware
```### Usage:
**Make shure static middleware was placed after sass-middleware**
```javascript
// app.use(require('sass-middleware')(options))
app.use(require('sass-middleware')({
bin: '/path/to/sass/executable',
src: 'public',
quiet: true
}));
app.use(connect.static('public'));
```### Options:
1. `bin` - Path to sass executable (defaults to `"sass"`)
2. `src` - Source path (defaults to `"public"`)
3. `dest` - Destination path (defaults to `options.src`)
4. `quiet` - Suppress output (defaults to `false`)
5. `cache_location` - Path to sass cache location (defaults to sass default cache location)
6. `style` - output style (defaults to sass default output style)