@cortez.connelly
To change the asset base path in the Vite dev server, you can use the base
option in the server
configuration section in the vite.config.js
file.
Here's how you can do it:
1 2 3 4 5 |
module.exports = { server: { base: '/assets/' } } |
Now, when you run the dev server, your assets will be served from the specified base path. You can access them in your HTML or JavaScript files using relative paths from the base path.