0
我有這個問題,就是我跑的任務,一切正常,但從來沒有給我style.css結果或輸出。Gulp Sass Bourbon,不給我style.css
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
sass = require('gulp-sass'),
compass = require('gulp-compass'),
neat = require ('node-neat').includePaths,
bourbon = require('node-bourbon');
// Bourbon Compile
gulp.task("compileBourbon", function(){
gulp.src('./src/sass/bourbon.scss')
.pipe(sass({
includePaths: require('node-bourbon').includePaths,
style: 'compressed',
quiet: true
}))
.pipe(gulp.dest('./builds/development/css'));
});
將quiet設置爲false並檢查日誌文件以排除故障 –
是否輸出bourbon.css?除非在你的gulp鏈中有一個重命名任務,否則它會輸出與它們輸入的文件名相同的文件(bourbon.scss => bourbon.css,style.scss => style.css等) – Derek