修复scss编译配置
parent
d393ad4876
commit
4abf8bb43b
|
@ -60,7 +60,9 @@ chokidar.watch(path.join(sourceDir, 'font/')).on('all', (act, file) => {
|
||||||
chokidar.watch(path.resolve(sourceDir, 'css/')).on('all', (act, file) => {
|
chokidar.watch(path.resolve(sourceDir, 'css/')).on('all', (act, file) => {
|
||||||
if (act === 'add' || act === 'change') {
|
if (act === 'add' || act === 'change') {
|
||||||
if (/\.scss$/.test(file)) {
|
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)
|
compileCss(file, output)
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue