0
我無法在根目錄下通過gulp創建output.css文件。我想要輸出壓縮一個帶有樣式表的文件,但是gulp並不能解決這個問題。Gulp任務輸出丟失文件
I have this structure
- bower_components
- bootstrap
- sass
- custom.scss
- output.css
我一飲而盡文件:
var gulp = require('gulp'),
sass = require('gulp-sass'),
watch = require('gulp-watch');
var concat = require('gulp-concat');
gulp.task('scss', function() {
return gulp.src('bower_components/bootstrap/scss/_custom.scss')
.pipe(sass({outputStyle: 'compressed'}))
.pipe(concat('output.css'))
.pipe(gulp.dest('./'));
});
gulp.task('watch', function() {
gulp.watch('bower_components/bootstrap/scss/_custom.scss', ['scss']);
});
gulp.task('default', ['watch']);
我看到你的文件結構使用目錄「青菜」,但你gulpfile使用「SCSS」。 – Mark