Skip to content

Commit

Permalink
Merge pull request #36 from zicsus/master
Browse files Browse the repository at this point in the history
append '.css' at the end of name if not specified by the user.
  • Loading branch information
nkrusch authored Mar 11, 2021
2 parents dffd451 + 3766af5 commit 1e91904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const styles = done => {
gulp.src(scss.src)
.pipe(plugins.sass())
.pipe(plugins.if(isProd, plugins.cleanCss()))
.pipe(plugins.concat(scss.name))
.pipe(plugins.concat(scss.name.endsWith(".css") ? scss.name : `${scss.name}.css`))
.pipe(gulp.dest(paths.dist + '/css'))
.on('end', function () {
if ((--count === 0) && !isDone) {
Expand Down

0 comments on commit 1e91904

Please sign in to comment.