Skip to content

Commit 6d4ed45

Browse files
committed
fix(build): fixed removing temporary SASS file
1 parent bc21e44 commit 6d4ed45

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ var fnSass = function (path) {
2929
to: pkg.name + '-' + pkg.version + '.css'
3030
}))
3131
.pipe(plugins.size({ showFiles: true, title: '[CSS]' }))
32-
.pipe(gulp.dest(config.build + '/assets'));
32+
.pipe(gulp.dest(config.build + '/assets'))
33+
.on('end', function () {
34+
require('fs').unlink(path);
35+
});
3336
};
3437
gulp.task('styles:sass:imports', function () {
3538
var files = [config.app + '/+(sass|app|common)/**/*.scss', '!' + config.app + '/sass/includes/*.scss', '!' + config.app + '/+(app|common)/**/_*.scss'];

0 commit comments

Comments
 (0)