https://github.com/elquimista/koa-sass
Koa@2 middleware for processing scss
https://github.com/elquimista/koa-sass
koa koa2 middleware sass
Last synced: about 1 month 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T18:02:11.000Z (almost 7 years ago)
- Last Synced: 2024-05-19T04:47:33.224Z (11 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中间件。   (仓库 / 中间件)
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