🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

connect-sass

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-sass

Connect middleware for rendering SASS/SCSS

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

Connect/express middelware for rendering SASS/SCSS. Install via npm:

npm install connect-sass

Basic usage is as follows:

express = require('express');
sass = require('connect-sass');

app = express();
app.use('/css/app.css', sass.serve('sass/app.sass'));
app.listen(3000);

This middleware will start watching directory of passed SASS/SCSS file for changes and rebuild CSS accordingly caching the result for future requests.

You should never use this middleware in production — use nginx for serving pre-built CSS assets to a browser.

Keywords

connect

FAQs

Package last updated on 28 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts