From 01ffc8678a7b9382b824427f6043914a4ad26494 Mon Sep 17 00:00:00 2001 From: y_tsumuki Date: Mon, 22 Jun 2020 13:59:35 +0900 Subject: [PATCH] =?UTF-8?q?Windows=E3=81=A7scss=E3=81=AE=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=83=91=E3=82=A4=E3=83=AB=E5=85=88=E3=81=AE=E3=83=91=E3=82=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=80=82mac=E3=81=A8windows=E4=B8=A1=E6=96=B9=E3=81=A7?= =?UTF-8?q?=E5=8B=95=E3=81=8D=E3=81=BE=E3=81=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 1a6987f9935..5ceabb057c1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -87,7 +87,7 @@ const sassTask = () => { }), ])) .pipe(rename((path) => { - path.dirname = path.dirname.replace('/scss', '/css') + path.dirname = path.dirname.replace(/scss$/, 'css') })) .pipe(gulp.dest(sassOutput, {sourcemaps: '.'})) .pipe(browserSync.stream()); @@ -112,7 +112,7 @@ const sassCssMinifyTask = () => { ])) .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(gulp.dest(sassOutput, {sourcemaps: '.'}))