vite-plugin-static-copy@4.0.1
Patch Changes
-
#249
c6bf44cThanks @sapphi-red! - Fix absolutedestpaths being nested under the output directoryWhen
destwas an absolute path and the source file had a directory component (structured output), the path was incorrectly converted to a relative path, causing files to be nested under the build output directory instead of being copied to the specified absolute path.{ src: 'foo/foo.txt', dest: '/home/user/my-repo/bar' }
Before:
/home/user/my-repo/dist/home/user/my-repo/bar/foo/foo.txt
After:/home/user/my-repo/bar/foo/foo.txt -
#247
d3af79eThanks @sapphi-red! - Fixrename.stripBaseto work correctly with../pathsPreviously,
stripBasecounted..as directory segments, causing incorrect output paths when copying from parent directories.{ src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2 } }
Before:
dist/src/pages/events/test.html
After:dist/events/test.html{ src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: true } }
Before:
dist/src/pages/events/test.html
After:dist/test.html