Skip to content

Commit

Permalink
Merge pull request #4580 from tsumu-tsumu/20200622_win_gulp
Browse files Browse the repository at this point in the history
Windowsでscssのコンパイル先のパスを修正しました。macとwindows両方で動きます。
  • Loading branch information
okazy authored Jun 30, 2020
2 parents 8a1a42a + a3bdca3 commit 040a470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gulp/task/scss-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = () => {
]))
.pipe(cleanCSS())
.pipe(rename((path) => {
path.dirname = path.dirname.replace('/scss', '/css')
path.dirname = path.dirname.replace(/scss$/, 'css')
if (path.extname === '.css') path.extname = '.min.css'
}))
.pipe(dest(config.paths.output.template, {sourcemaps: '.'}))
Expand Down
2 changes: 1 addition & 1 deletion gulp/task/scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = () => {
}),
]))
.pipe(rename((path) => {
path.dirname = path.dirname.replace('/scss', '/css')
path.dirname = path.dirname.replace(/scss$/, 'css')
}))
.pipe(dest(config.paths.output.template, {sourcemaps: '.'}))
.pipe(browserSync.stream())
Expand Down

0 comments on commit 040a470

Please sign in to comment.