Sass to merge multiple files into one file
Scenario: Production angular npm package when the definition of a number of global style, under Custom theme color this kind of situation, scss multiple files to be merged into one file and writes dist document, posted to the warehouse.
gulpfile.js
gulp.task('scss', () => { return gulp.src(__dirname+'/src/theme/*.scss') .pipe(concat('_theme.scss')) .pipe(gulp.dest('./dist/')); });
Excuting an order
gulp scss