How could I copy different files in development mode and production mode? #116
-
Maybe like viteStaticCopy(({ mode }) => {
targets: mode === 'production'
? [
{
src: '/node_modules/foo/bar.min.js',
dest: '/libs/'
}
]
: [
{
src: '/node_modules/foo/bar.js',
dest: '/libs/'
},
{
src: '/node_modules/foo/bar.js.map',
dest: '/libs/'
}
]
}) |
Beta Was this translation helpful? Give feedback.
Answered by
sapphi-red
May 15, 2024
Replies: 1 comment 2 replies
-
I guess you can use this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, maybe something like this?