Last active
May 5, 2017 11:05
-
-
Save thebigtine/c7330537d5952c78495cccd7ef0877bc to your computer and use it in GitHub Desktop.
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
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']); | |
}); |
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
// 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 |
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
{ | |
"repository": { | |
"private": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment