Last active
September 4, 2023 13:03
-
-
Save wildiney/cea1edf98a5a4def4639e38188f389fd to your computer and use it in GitHub Desktop.
Vite config for naming dist files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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