Created
July 27, 2015 14:51
-
-
Save takuan-osho/82a5ef67537ffccd0079 to your computer and use it in GitHub Desktop.
slimのビルドをgulpのslim pluginでやった場合のgulpfile
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
var gulp = require("gulp"); | |
var slim = require("gulp-slim"); | |
gulp.task('slim', function(){ | |
gulp.src("./*.slim") | |
.pipe(slim({ | |
pretty: true | |
})) | |
.pipe(gulp.dest("./output/")); | |
}); | |
gulp.task('watch', function() { | |
gulp.watch('./*.slim', ['slim']); | |
}); | |
gulp.task('default', ['watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment