Change index.html extension #5947
nathanwuiske
started this conversation in
General
Replies: 1 comment
-
try this export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "index.html"),
},
output: {
entryFileNames: `assets/[name].blade.php`,
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Vue-CLI you could specify the output path for the generated index.html, and you could also rename the index.html file in the process like so:
indexPath: process.env.NODE_ENV === "production" ? "../resources/views/index.blade.php" : "index.html",
I need the generated
index.html
file to output asindex.blade.php
for Laravel to read it.Reading over the Vite config documentation, I don't see a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions