How To Serve a Vite + Vue3 Page Inside a Sub-folderby@dhgouveia

How To Serve a Vite + Vue3 Page Inside a Sub-folder

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Vue3 + Vite page can be served inside a sub- folder. To make this happen, you need two changes. The first one is on `vite.config.ts` or `js` and add the parameter `base: ''` The second change is inside your vue router and adding the parameter base in `createWebHistory'
featured image - How To Serve a Vite + Vue3 Page Inside a Sub-folder
Jose De Gouveia HackerNoon profile picture

@dhgouveia

Jose De Gouveia

About @dhgouveia
LEARN MORE ABOUT @DHGOUVEIA'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa