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: {