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
node_modules
build/
/assets/

View File

@ -9,8 +9,7 @@
"scripts": {
"dev": "vite",
"hot": "vite",
"production": "vite build",
"prod": "npm run production"
"production": "vite build"
},
"keywords": [],
"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:
command === "serve"
? "/themes/vite-tailwind/"
: "/themes/vite-tailwind/assets/public/",
: "/themes/vite-tailwind/build/",
/*base: `${ASSET_URL}`,*/
publicDir: "resources/public",
publicDir: "fake_dir_so_nothing_gets_copied",
build: {
manifest: "manifest.json",
outDir: "assets/public",
assetsDir: "",
manifest: true,
outDir: "build",
rollupOptions: {
input: `${VITE_INPUT}`,
},