Created
April 28, 2022 04:42
-
-
Save flashvnn/70539a0bcac9554d4a169b665111e2fa to your computer and use it in GitHub Desktop.
Vite config for output without hash
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 { fileURLToPath, URL } from 'url' | |
import { defineConfig } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
import vueJsx from '@vitejs/plugin-vue-jsx' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [vue(), vueJsx()], | |
resolve: { | |
alias: { | |
'@': fileURLToPath(new URL('./src', import.meta.url)) | |
} | |
}, | |
build: { | |
outDir: '../lib', | |
rollupOptions: { | |
output: { | |
manualChunks: undefined, | |
assetFileNames: "[name].[ext]", | |
entryFileNames: '[name].js' | |
}, | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment