Created
August 4, 2014 03:04
-
-
Save mwinche/9234cb89624a43947312 to your computer and use it in GitHub Desktop.
Idea I was playing with for using Gulp plugins to compile and serve assets on the fly
This file contains 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
#!/usr/bin/env node | |
var less = require('gulp-less'), | |
express = require('express'), | |
gulp = require('gulp'); | |
var app = express(); | |
app.get('/test.css', function(req, res){ | |
gulp.src('test.less') | |
.pipe(less()) | |
.on('data', function(data){ | |
data.pipe(res); | |
}); | |
}); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment