Compare commits

..

No commits in common. "709ca3edf941b37564a8890af2cb919dde06b4b9" and "86da19d7b5064e1a619c1c8f4fc54bd2617aea11" have entirely different histories.

4 changed files with 5 additions and 19 deletions

1
.gitignore vendored
View File

@ -2,4 +2,3 @@
.idea .idea
node_modules node_modules
build/ build/
/assets/

View File

@ -9,8 +9,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"hot": "vite", "hot": "vite",
"production": "vite build", "production": "vite build"
"prod": "npm run production"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View File

@ -1,11 +0,0 @@
{% if devServerIsRunning %}
<script type="module" src="http://localhost:3000/@vite/client"></script>
<script type="module" src="http://localhost:3000/resources/js/app.js"></script>
{% else %}
{% for css in cssPaths %}
<link rel="stylesheet" href="{{ ('assets/public/' ~ css)|theme }}">
{% endfor %}
{% put scripts %}
<script type="module" src="{{ ('assets/public/' ~ jsPath)|theme }}"></script>
{% endput %}
{% endif %}

View File

@ -12,13 +12,12 @@ export default ({ command }) => {
base: base:
command === "serve" command === "serve"
? "/themes/vite-tailwind/" ? "/themes/vite-tailwind/"
: "/themes/vite-tailwind/assets/public/", : "/themes/vite-tailwind/build/",
/*base: `${ASSET_URL}`,*/ /*base: `${ASSET_URL}`,*/
publicDir: "resources/public", publicDir: "fake_dir_so_nothing_gets_copied",
build: { build: {
manifest: "manifest.json", manifest: true,
outDir: "assets/public", outDir: "build",
assetsDir: "",
rollupOptions: { rollupOptions: {
input: `${VITE_INPUT}`, input: `${VITE_INPUT}`,
}, },