@teamvelix/velix 5.0.1 → 5.0.2

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.
@@ -836,13 +836,27 @@ function tailwindPlugin(options = {}) {
836
836
  });
837
837
  watcher.stdout.on("data", (data) => {
838
838
  const msg = data.toString().trim();
839
- if (msg && !msg.includes("Rebuilding...")) {
839
+ if (msg && !msg.includes("Rebuilding...") && !msg.includes("Done in")) {
840
+ logger_default.info(`Tailwind: ${msg}`);
841
+ }
842
+ });
843
+ watcher.stderr.on("data", (data) => {
844
+ const msg = data.toString().trim();
845
+ if (msg) {
846
+ logger_default.warn(`Tailwind: ${msg}`);
840
847
  }
841
848
  });
842
849
  watcher.on("error", (err) => {
843
850
  logger_default.error("Tailwind watcher error", err);
844
851
  });
852
+ watcher.on("exit", (code) => {
853
+ if (code !== 0 && code !== null) {
854
+ logger_default.error(`Tailwind watcher exited with code ${code}`);
855
+ }
856
+ });
845
857
  process.on("exit", () => watcher.kill());
858
+ process.on("SIGINT", () => watcher.kill());
859
+ process.on("SIGTERM", () => watcher.kill());
846
860
  }
847
861
  }
848
862
  });