Skip to content

Instantly share code, notes, and snippets.

@wildiney
Last active September 4, 2023 13:03
Show Gist options
  • Save wildiney/cea1edf98a5a4def4639e38188f389fd to your computer and use it in GitHub Desktop.
Save wildiney/cea1edf98a5a4def4639e38188f389fd to your computer and use it in GitHub Desktop.
Vite config for naming dist files
import {defineConfig} from 'vite'
export default defineConfig({
build:{
rollupOptions:{
output:{
assetFileNames:'assets/[name].[ext]',
entryFileNames:'[name].js'
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment