Gulp Sass with files in folders and subfolders -
i not quite familiar gulp need use project. folder structure this
- project -- src --- sass ---- css ----- ..many .sass files here ----- partials ------ ...many .sass files here -- www --- css ----- ....css files should go here (working) ------ partials ------- ...subfolder files should go here (not working)
my attempt looks this
var config = { sass: { src: [ './src/sass/css/**/**.scss', './src/sass/css/partials/**/**.scss ], paths: [ './src/scss' ] }, } gulp.task('sass', function () { return gulp.src(config.sass.src).pipe(sass({ paths: config.sass.paths.map(function(p){ return path.resolve(__dirname, p); }) })) .pipe(gulp.dest(path.join(config.dest, 'css'))); });
what right way of doing this? need separate sass tasks destination directories different? appreciated!
Comments
Post a Comment