electricity
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -92,2 +92,3 @@ const crypto = require('crypto'); | ||
var stylesheets = []; | ||
var watcher; | ||
@@ -334,5 +335,8 @@ function cacheFile(filePath, stat) { | ||
// Watch directory for changes | ||
// Watch for changes | ||
if (options.watch.enabled) { | ||
const watcher = chokidar.watch(directory, { | ||
const jsDirectories = Array.from(new Set(Object.keys(snockets.depGraph.map).map(d => path.dirname(d)))); | ||
const sassDirectories = Array.from(new Set(Object.keys(sassGraph.parseDir(directory).index).map(d => path.dirname(d)))); | ||
watcher = chokidar.watch([directory, ...jsDirectories, ...sassDirectories], { | ||
ignoreInitial: true | ||
@@ -339,0 +343,0 @@ }); |
@@ -37,3 +37,3 @@ { | ||
}, | ||
"version": "2.0.0" | ||
"version": "2.1.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34637
380