Compare commits
2 Commits
86da19d7b5
...
709ca3edf9
Author | SHA1 | Date |
---|---|---|
philipp lang | 709ca3edf9 | |
philipp lang | 9fac4cf86c |
|
@ -2,3 +2,4 @@
|
||||||
.idea
|
.idea
|
||||||
node_modules
|
node_modules
|
||||||
build/
|
build/
|
||||||
|
/assets/
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"hot": "vite",
|
"hot": "vite",
|
||||||
"production": "vite build"
|
"production": "vite build",
|
||||||
|
"prod": "npm run production"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{% 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 %}
|
|
@ -12,12 +12,13 @@ export default ({ command }) => {
|
||||||
base:
|
base:
|
||||||
command === "serve"
|
command === "serve"
|
||||||
? "/themes/vite-tailwind/"
|
? "/themes/vite-tailwind/"
|
||||||
: "/themes/vite-tailwind/build/",
|
: "/themes/vite-tailwind/assets/public/",
|
||||||
/*base: `${ASSET_URL}`,*/
|
/*base: `${ASSET_URL}`,*/
|
||||||
publicDir: "fake_dir_so_nothing_gets_copied",
|
publicDir: "resources/public",
|
||||||
build: {
|
build: {
|
||||||
manifest: true,
|
manifest: "manifest.json",
|
||||||
outDir: "build",
|
outDir: "assets/public",
|
||||||
|
assetsDir: "",
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: `${VITE_INPUT}`,
|
input: `${VITE_INPUT}`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue