Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. var gulp = require('gulp');
  2. var autoprefixer = require('gulp-autoprefixer');
  3. var sass = require('gulp-ruby-sass');
  4.  
  5. gulp.task('css', function(){
  6.  
  7. return gulp.src('./assets/scss/main.scss')
  8. .pipe(sass({
  9. style: 'expanded',
  10. noCache: true
  11. }))
  12. .pipe(autoprefixer('last 5 versions'))
  13. .pipe(gulp.dest('./assets/css'));
  14. });
  15.  
  16. gulp.task('watch', function(){
  17. gulp.watch('./assets/scss/*.scss', ['css']);
  18. });
  19.  
  20. gulp.task('default', ['css', 'watch']);
  21.  
  22. #data {
  23. @include left(10px);
  24. @include table-base;
  25. }
  26.  
  27. events.js:72
  28. throw er; // Unhandled 'error' event
  29. ^
  30. [gulp] Error in plugin 'gulp-ruby-sass':
  31. Syntax error: Undefined mixin 'left'.
  32. on line 2 of /vagrant/gulp_test_1/assets/scss/main.scss, in `left'
  33. from line 2 of /tmp/a4d96d4a-b823-4828-a37c-eab307477784/main.scss
  34.  
  35. at ChildProcess.<anonymous> (/vagrant/gulp_test_1/node_modules/gulp-ruby-sass/index.js:74:25)
  36. at ChildProcess.EventEmitter.emit (events.js:98:17)
  37. at maybeClose (child_process.js:743:16)
  38. at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement