Skip to content
Snippets Groups Projects
Commit 207af9a0 authored by Sergey Tselovalnikov's avatar Sergey Tselovalnikov
Browse files

Enable fs.watch for win or macos

parent 598da42f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,6 +2,7 @@ var path = require("path");
var fs = require('fs')
var execSync = require('child_process').execSync
var isWin = /^win/.test(process.platform);
var isMacOs = 'darwin' == process.platform;
 
/**
* Node-watch npm package https://github.com/yuanchuan/node-watch
Loading
Loading
@@ -414,7 +415,8 @@ KotlinWebpackPlugin.prototype.apply = function (compiler) {
for (var i = 0; i < deps.length; i++) {
var t = deps[i].trim()
if (t.length > 0) {
watch(t, {
var watchFn = isWin || isMacOs ? fs.watch : watch
watchFn(t, {
recursive: true,
persistent: false
}, execGradle)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment