crabatool 1.0.117 → 1.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tool/ngptool.js +6 -4
package/package.json
CHANGED
package/tool/ngptool.js
CHANGED
|
@@ -16,10 +16,7 @@ function mergeBiz(childPath) {
|
|
|
16
16
|
}
|
|
17
17
|
utils.log('biz.js打包启动:' + bizPath);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
persistent: true,
|
|
21
|
-
usePolling: true
|
|
22
|
-
});
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
var watchAction = function() {
|
|
25
22
|
utils.debug('打包中');
|
|
@@ -33,6 +30,11 @@ function mergeBiz(childPath) {
|
|
|
33
30
|
|
|
34
31
|
// 只打包的情况就不监视文件
|
|
35
32
|
if (!config.mergeinitjs) {
|
|
33
|
+
var watcher = chokidar.watch([bizPath], {
|
|
34
|
+
persistent: true,
|
|
35
|
+
usePolling: true
|
|
36
|
+
});
|
|
37
|
+
|
|
36
38
|
watcher
|
|
37
39
|
.on('ready', () => utils.debug(`${bizPath},Initial scan complete. Ready for changes.`))
|
|
38
40
|
//.on('add', path => log(`File ${path} has been added`))
|