From 5d2b06be09ee2e8bcf4b9ecafc97584a7f4fde76 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 3 Oct 2024 13:35:29 +0200 Subject: [PATCH] Drop dotenv --- package-lock.json | 9 --------- package.json | 1 - vite.config.js | 9 +-------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 420eabd..47bf2b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "@tailwindcss/typography": "^0.5.0", "alpinejs": "^3.13.5", "dayjs": "^1.11.10", - "dotenv": "^10.0.0", "flowbite": "^2.2.1", "flowbite-datepicker": "^1.2.6" }, @@ -1068,14 +1067,6 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "engines": { - "node": ">=10" - } - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", diff --git a/package.json b/package.json index c55c990..045dbf7 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@tailwindcss/typography": "^0.5.0", "alpinejs": "^3.13.5", "dayjs": "^1.11.10", - "dotenv": "^10.0.0", "flowbite": "^2.2.1", "flowbite-datepicker": "^1.2.6" } diff --git a/vite.config.js b/vite.config.js index fbdb02e..687bf5b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,26 +1,19 @@ -const Dotenv = require("dotenv"); import liveReload from "vite-plugin-live-reload"; import VitePluginSvgSpritemap from "@spiriit/vite-plugin-svg-spritemap"; -Dotenv.config(); - -const ASSET_URL = process.env.ASSET_URL || "http://localhost:3000"; -const VITE_INPUT = process.env.VITE_INPUT || "resources/js/app.js"; - export default ({ command }) => { return { base: command === "serve" ? "/themes/vite-tailwind/" : "/themes/vite-tailwind/assets/public/", - /*base: `${ASSET_URL}`,*/ publicDir: "resources/public", build: { manifest: "manifest.json", outDir: "assets/public", assetsDir: "", rollupOptions: { - input: `${VITE_INPUT}`, + input: "resources/js/app.js", }, }, server: {