This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复scss编译配置

old
宇天 2017-12-04 10:07:58 +08:00
parent d393ad4876
commit 4abf8bb43b
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}