test.js 385 B

12345678910111213141516
  1. var gulp = require('gulp');
  2. var sass = require('.');
  3. gulp.task('sass', function() {
  4. gulp.src('*.scss')
  5. .pipe(sass({
  6. sourceComments: true,
  7. outputStyle: 'expanded',
  8. errLogToConsole: true
  9. }))
  10. .pipe(gulp.dest('dest'));
  11. });
  12. gulp.task('watch', ['sass'], function() {
  13. var sassWatcher = gulp.watch('*.scss', ['sass']);
  14. });