Socket
Socket
Sign inDemoInstall

@jackhuynh1995/vue-cli-plugin-envhot

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

19

lib/index.js

@@ -29,14 +29,17 @@ (function (factory) {

api.configureDevServer(function (app, server) {
var watcher = (0, chokidar_1.watch)(".env?(.development)?(.local)");
// changed envFile
watcher.on("change", function () {
// Check if not in production mode
if (process.env.NODE_ENV !== 'production') {
var watcher = (0, chokidar_1.watch)(".env?(.development)?(.local)");
// changed envFile
watcher.on("change", function () {
(0, parseEnv_1.default)(envFiles);
server.invalidate(function () { });
// server.
});
// immediately
(0, parseEnv_1.default)(envFiles);
server.invalidate(function () { });
// server.
});
// immediately
(0, parseEnv_1.default)(envFiles);
server.invalidate(function () { });
}
});
};
});
{
"name": "@jackhuynh1995/vue-cli-plugin-envhot",
"version": "1.0.1",
"version": "1.0.2",
"description": "hot reloading your .env files, never worry about restarting yor wde",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -21,15 +21,18 @@ import { watch } from "chokidar";

api.configureDevServer((app, server) => {
const watcher = watch(".env?(.development)?(.local)");
// Check if not in production mode
if (process.env.NODE_ENV !== 'production') {
const watcher = watch(".env?(.development)?(.local)");
// changed envFile
watcher.on("change", () => {
// changed envFile
watcher.on("change", () => {
parseEnv(envFiles);
server.invalidate(() => {});
// server.
});
// immediately
parseEnv(envFiles);
server.invalidate(() => {});
// server.
});
// immediately
parseEnv(envFiles);
server.invalidate(() => {});
}
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc