Skip to content

Commit b6318d4

Browse files
authored
fix: 修复gulp watch无法监听文件改变的问题 (#714)
1 parent b1e5872 commit b6318d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ module.exports = {
7474
),
7575
watch: parallel(
7676
() => {
77-
watch(`${srcDevPath}/*.less`, buildWxss(`${srcDevPath}/*.less`, `!${srcDevPath}/_*.less`, examplePath));
78-
watch(`${srcDevPath}/*.wxml`, copy(srcDevPath, examplePath, 'wxml'));
79-
watch(`${srcDevPath}/*.wxs`, copy(srcDevPath, examplePath, 'wxs'));
80-
watch(`${srcDevPath}/*.json`, copy(srcDevPath, examplePath, 'json'));
81-
watch(`${srcDevPath}/*.js`, copy(srcDevPath, examplePath, 'js'));
77+
watch("../src/**/*.less", buildWxss(`${srcDevPath}/*.less`, `!${srcDevPath}/_*.less`, examplePath));
78+
watch("../src/**/*.wxml", copy(srcDevPath, examplePath, 'wxml'));
79+
watch("../src/**/*.wxs", copy(srcDevPath, examplePath, 'wxs'));
80+
watch("../src/**/*.json", copy(srcDevPath, examplePath, 'json'));
81+
watch("../src/**/*.js", copy(srcDevPath, examplePath, 'js'));
8282
}
8383
)
8484
};

0 commit comments

Comments
 (0)