https://i.imgur.com/ANLpKTm.jpg
请教一下,这是我目前的资料夹结构
我使用gulp来做scss的编译
================================================
// grab our gulp packages
var gulp = require('gulp'),
gutil = require('gulp-util');
compass = require('gulp-compass');
// create a default task and just log a message
gulp.task('default', function() {
return gutil.log('Gulp is running!')
});
gulp.task('compass', function() {
gulp.src('./scss/*.scss')
.pipe(compass({
config_file: './config.rb',
css: './css/',
sass: './scss/',
style: 'compact' //nested, expanded, compact, compressed
}))
.pipe(gulp.dest('./css/'));
});
gulp.task('watch', function() {
gulp.watch('./scss/*.scss', ['compass']);
});
gulp.task('default', ['compass', 'watch']);
================================================
目前是这样设定,但是它只能编译当前目录的scss资料夹下的档案
不知道能不能改成,它可以编译所有的scss资料夹的档案,
然后产生至不同的css资料夹呢?
(看那个scss资料夹在哪里,就产生至它当前目录的另一个css资料夹)
卡关很久,还请多指点,感激 m(__ __)m