Drop dotenv
This commit is contained in:
parent
709ca3edf9
commit
5d2b06be09
|
@ -13,7 +13,6 @@
|
||||||
"@tailwindcss/typography": "^0.5.0",
|
"@tailwindcss/typography": "^0.5.0",
|
||||||
"alpinejs": "^3.13.5",
|
"alpinejs": "^3.13.5",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"dotenv": "^10.0.0",
|
|
||||||
"flowbite": "^2.2.1",
|
"flowbite": "^2.2.1",
|
||||||
"flowbite-datepicker": "^1.2.6"
|
"flowbite-datepicker": "^1.2.6"
|
||||||
},
|
},
|
||||||
|
@ -1068,14 +1067,6 @@
|
||||||
"url": "https://github.com/fb55/domutils?sponsor=1"
|
"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": {
|
"node_modules/eastasianwidth": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
"@tailwindcss/typography": "^0.5.0",
|
"@tailwindcss/typography": "^0.5.0",
|
||||||
"alpinejs": "^3.13.5",
|
"alpinejs": "^3.13.5",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"dotenv": "^10.0.0",
|
|
||||||
"flowbite": "^2.2.1",
|
"flowbite": "^2.2.1",
|
||||||
"flowbite-datepicker": "^1.2.6"
|
"flowbite-datepicker": "^1.2.6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,19 @@
|
||||||
const Dotenv = require("dotenv");
|
|
||||||
import liveReload from "vite-plugin-live-reload";
|
import liveReload from "vite-plugin-live-reload";
|
||||||
import VitePluginSvgSpritemap from "@spiriit/vite-plugin-svg-spritemap";
|
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 }) => {
|
export default ({ command }) => {
|
||||||
return {
|
return {
|
||||||
base:
|
base:
|
||||||
command === "serve"
|
command === "serve"
|
||||||
? "/themes/vite-tailwind/"
|
? "/themes/vite-tailwind/"
|
||||||
: "/themes/vite-tailwind/assets/public/",
|
: "/themes/vite-tailwind/assets/public/",
|
||||||
/*base: `${ASSET_URL}`,*/
|
|
||||||
publicDir: "resources/public",
|
publicDir: "resources/public",
|
||||||
build: {
|
build: {
|
||||||
manifest: "manifest.json",
|
manifest: "manifest.json",
|
||||||
outDir: "assets/public",
|
outDir: "assets/public",
|
||||||
assetsDir: "",
|
assetsDir: "",
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: `${VITE_INPUT}`,
|
input: "resources/js/app.js",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
|
Loading…
Reference in New Issue