Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shishirraven/7a15c697f14c34d9a964506edad372a9 to your computer and use it in GitHub Desktop.
Save shishirraven/7a15c697f14c34d9a964506edad372a9 to your computer and use it in GitHub Desktop.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
base: "./",
filenameHashing: false,
plugins: [vue()],
build: {
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`
}
}
},
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
server: {
open: true,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment