How to use the koa.sass function in koa

To help you get started, we’ve selected a few koa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github delbertbeta / rajio / app.js View on Github external
//   log4js.info(meta);
//   await next();
//   return;
// });

app.use(render(__dirname + '/view', {
  map: {
    html: 'underscore'
  },
  extension: 'ejs'
}));

app.use(router.routes())
  .use(router.allowedMethods());

app.use(serveSass({
  mountAt: '/static/css',
  src: './static/scss',
  dest: './static/css',
  importPaths: ['./node_modules']
}))

app.use(serveStatic('./static', '/static'));

sequelize.rajio.sync()
sequelize.rajioInfo.sync()

gc.init()
info.init()

app.listen(4290);
log4js.info('Serving at http://localhost:4290');

koa

Koa web app framework

MIT
Latest version published 8 days ago

Package Health Score

95 / 100
Full package analysis