Open issam-seghir opened 10 months ago
My vite config :
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { ViteAliases } from "vite-aliases"; import svgr from "vite-plugin-svgr"; export default defineConfig({ base: "/instagram-clone/", // Getting rid of hashes in generated filenames filenameHashing: true, build: { // change output location rollupOptions: { output: { assetFileNames: (assetInfo) => { if (assetInfo.name.endsWith(".gif")) { return "[name].[ext]"; } return `[name].[hash].[ext]`; }, }, }, }, resolve: { extensions: [".js", ".jsx", ".ts", ".tsx", ".json"], plugins: [ [react()], ViteAliases({ dir: "src", prefix: "@", deep: true, depth: 2, adjustDuplicates: true, useConfig: true, /** * Disables any terminal output */ silent: false, }) , svgr({ include: "**/*.svg", }), ], });
+1
Hey there, thanks for the report! This should've been resolved a while ago.. :thinking: Currently it does not appear for me, but i will investigate and try to include a fix in the upcoming 0.12!
0.12
My vite config :