File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import path from 'path';
55import AutoImport from 'unplugin-auto-import/vite' ;
66import { IonicResolver } from 'unplugin-vue-components/resolvers' ;
77import Components from 'unplugin-vue-components/vite' ;
8- import { defineConfig } from 'vite' ;
8+ import { defineConfig , normalizePath } from 'vite' ;
99import { viteStaticCopy } from 'vite-plugin-static-copy' ;
1010
1111import getViteAliases from '../../vite-aliases' ;
@@ -70,8 +70,11 @@ export default defineConfig({
7070 viteStaticCopy ( {
7171 targets : [
7272 {
73- src : '../web/public/images/medals/*.png' ,
73+ src : normalizePath ( path . resolve ( __dirname , '../web/public/images/medals/*.png' ) ) ,
7474 dest : 'images/medals' ,
75+ // Matched paths are ../web/public/images/medals/<file>.png → destDir becomes
76+ // images/medals/web/public/images/medals; go up 4 segments to land in images/medals/.
77+ rename : ( name , ext ) => `../../../../${ name } .${ ext } ` ,
7578 } ,
7679 ] ,
7780 } ) ,
You can’t perform that action at this time.
0 commit comments