Skip to content

Instantly share code, notes, and snippets.

@thebigtine
Last active May 5, 2017 11:05
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 thebigtine/c7330537d5952c78495cccd7ef0877bc to your computer and use it in GitHub Desktop.
Save thebigtine/c7330537d5952c78495cccd7ef0877bc to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
return gulp.src('style.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(''));
});
gulp.task('watch', function () {
gulp.watch('style.scss', ['sass']);
});
// install npm from: https://docs.npmjs.com/getting-started/installing-node
$ npm install --global gulp-cli
$ npm install --global gulp-sass
$ cd path/to/project
$ touch gulpfile.js
$ gulp watch
{
"repository": {
"private": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment