Created
January 15, 2017 16:49
-
-
Save sskoopa/70a74132c12f764229565429250fb472 to your computer and use it in GitHub Desktop.
Use node-sass-middleware in express
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const sassMiddleware = require('node-sass-middleware') | |
const app = express() | |
app.use(sassMiddleware({ | |
/* Options */ | |
src: path.join(__dirname, '../public/scss'), | |
response: true, | |
debug: true, | |
outputStyle: 'compressed', | |
prefix: '/scss' // Where prefix is at <link rel="stylesheets" href="prefix/style.css"/> | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment