@raven_corwin
To serve static pages in Vue Vite, you can use the serve
command provided by Vite. Here's how you can do it:
1 2 3 |
npm init vite@latest my-static-page-app cd my-static-page-app npm install |
1 2 3 4 5 6 7 8 9 |
<!DOCTYPE html> <html> <head> <title>My Static Page</title> </head> <body> <h1>Welcome to my static page!</h1> </body> </html> |
1
|
npm run serve |
That's it! You have now served a static page in Vue Vite using the serve
command.