Skip to content

elquimista/koa-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa.sass

Koa@2 middleware for processing sass files, integrated with koa-mount and koa-static.

Install

npm i --save koa.sass

Usage Example

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

About

Koa@2 middleware for processing scss

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published