Skip to content

Instantly share code, notes, and snippets.

@Kimserey
Created March 24, 2017 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kimserey/3c976e3755183fc22379b115ca8b4a07 to your computer and use it in GitHub Desktop.
Save Kimserey/3c976e3755183fc22379b115ca8b4a07 to your computer and use it in GitHub Desktop.
Gulp file with sass compilation and bootup of live-server
var gulp = require('gulp');
var sass = require('gulp-sass');
var exec = require('child_process').exec;
gulp.task('sass', function() {
gulp.src('scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('.'));
});
gulp.task('watch', ['sass'], function() {
gulp.watch('scss/*.scss', ['sass']);
})
gulp.task('default', ['watch'], function() {
exec("live-server");
});
{
"version": "0.1.0",
"command": "gulp",
"isShellCommand": true,
"echoCommand": true,
"tasks": [{
"taskName": "sass-1",
"suppressTaskName": true,
"args": [
"default"
],
"isBuildCommand": true,
"showOutput": "always",
"isBackground": true
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment