[Vuejs]-Can't get Vite to build app and js file into the same dist

1👍

Try changing your configuration like this:

export default defineConfig({

  build: {
    rollupOptions: {
        output:
        {
            format: 'es',
            strict: false,
            entryFileNames: "[name].js",
            dir: 'dist/'
        }
     }
  },
.
.
.

});

Leave a comment