Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elquimista/koa-sass
Koa@2 middleware for processing scss
https://github.com/elquimista/koa-sass
koa koa2 middleware sass
Last synced: 26 days ago
JSON representation
Koa@2 middleware for processing scss
- Host: GitHub
- URL: https://github.com/elquimista/koa-sass
- Owner: elquimista
- License: mit
- Created: 2016-12-23T09:50:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T18:02:11.000Z (over 6 years ago)
- Last Synced: 2024-05-19T04:47:33.224Z (6 months ago)
- Topics: koa, koa2, middleware, sass
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-koa - koa.sass - Sass中间件。 ![](https://img.shields.io/github/stars/clthck/koa-sass.svg?style=social&label=Star) ![](https://img.shields.io/npm/dm/koa.sass.svg?style=flat-square) (仓库 / 中间件)
README
## koa.sass
Koa@2 middleware for processing sass files, integrated with [koa-mount](https://github.com/koajs/mount) and [koa-static](https://github.com/koajs/static).
### Install
```
npm i --save koa.sass
```### Usage Example
```javascript
const Koa = require('koa');
const serveSass = require('koa.sass');
const mount = require('koa-mount');
const serveStatic = require('koa-static');const app = new Koa();
app.use(serveSass({
mountAt: '/assets',
src: './app/assets/stylesheets',
dest: './.tmp/stylesheets',
importPaths: ['./node_modules']
});
app.use(mount('/assets', serveStatic('./node_modules')));
app.use(mount('/assets', serveStatic('./app/assets/javascripts')));app.listen(3000);
```### License
MIT