From 4abf8bb43b94e27dcc8812c1bc5fb0b0e42b026a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 4 Dec 2017 10:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dscss=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.dev.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.dev.js b/build.dev.js index 74dca65..3b879de 100644 --- a/build.dev.js +++ b/build.dev.js @@ -60,7 +60,9 @@ chokidar.watch(path.join(sourceDir, 'font/')).on('all', (act, file) => { chokidar.watch(path.resolve(sourceDir, 'css/')).on('all', (act, file) => { if (act === 'add' || act === 'change') { if (/\.scss$/.test(file)) { - let output = file.replace('src/css/', 'dist/css/') + let output = file + .replace('src/css/', 'dist/css/') + .replace('.scss', '.css') compileCss(file, output) }