Skip to content

Commit 44b2263

Browse files
chore: Test vite plugin custom path normalization
1 parent 1db06c3 commit 44b2263

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

examples/vite/vite.config.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { codecovVitePlugin } from "@codecov/vite-plugin";
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7-
build: {
8-
rollupOptions: {
9-
output: {
10-
assetFileNames: "[name].[hash].js",
11-
chunkFileNames: "[name]-[hash].js",
12-
},
13-
},
14-
},
7+
// build: {
8+
// rollupOptions: {
9+
// output: {
10+
// assetFileNames: "[name].[hash].js",
11+
// chunkFileNames: "[name]-[hash].js",
12+
// },
13+
// },
14+
// },
1515
plugins: [
1616
react(),
1717
codecovVitePlugin({
@@ -20,6 +20,8 @@ export default defineConfig({
2020
uploadToken: process.env.VITE_UPLOAD_TOKEN,
2121
apiUrl: process.env.VITE_API_URL,
2222
debug: true,
23+
assetFileNames: "[name].[hash].js",
24+
chunkFileNames: "[name]-[hash].js",
2325
}),
2426
],
2527
});

0 commit comments

Comments
 (0)