[Vuejs]-Vue.js: files are not found until I add dist folder to href

0👍

Try to create vite.config.js in root of you project, and check output structure:

module.exports = {
  root: 'src',
  build: {
    outDir: '../dist'
  }
}

More info: https://vitejs.dev/config/#build-outdir

Also try check this question: Vite – change ouput directory of assets

Leave a comment