vite-plugin-caddy-multiple-tls 0.0.1 → 1.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -438,6 +438,13 @@ function viteCaddyTlsPlugin({
438
438
  domainArray.forEach((domain2) => {
439
439
  console.log(chalk.blue(`\u{1F30D} https://${domain2}`));
440
440
  });
441
+ if (process.platform === "linux") {
442
+ console.log();
443
+ console.log(chalk.yellow("\u{1F427} Linux users: if the domain doesn't resolve, run:"));
444
+ domainArray.forEach((domain2) => {
445
+ console.log(chalk.dim(` echo "127.0.0.1 ${domain2}" | sudo tee -a /etc/hosts`));
446
+ });
447
+ }
441
448
  console.log();
442
449
  registerProcessCleanup();
443
450
  httpServer?.once("close", onServerClose);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-caddy-multiple-tls",
3
- "version": "0.0.1",
3
+ "version": "1.0.0",
4
4
  "description": "Vite plugin that uses Caddy to provide local HTTPS with derived domains.",
5
5
  "keywords": [
6
6
  "vite",