gulp-ruby-sass 用法变了的,看下最新的写法。
另外,用 gulp-sass 吧, gulp-ruby-sass 很坑。

吐槽不吐葡萄皮 answered 9 years, 10 months ago

Something Had Changed

图片描述

详细点这里。

牛奶大碧池 answered 9 years, 10 months ago


 gulp.task('styles', function () {
  return gulp.src('app/styles/*.scss')
    .pipe($.sass({
      outputStyle: 'nested', // libsass doesn't support expanded yet
      precision: 10,
      includePaths: ['.'],
      onError: console.error.bind(console, 'Sass error:')
    }))
    .pipe(gulp.dest('dist/styles'))
});

bcbbky answered 9 years, 10 months ago

Your Answer