sapphi-red / vite-plugin-static-copy

rollup-plugin-copy with dev server support.
MIT License
297 stars 32 forks source link

Posibility to only use for serve or build mode #76

Closed evilchis94 closed 10 months ago

evilchis94 commented 10 months ago

Hey @sapphi-red, thanks for this amazing vite-plugin.

I need to use the plugin only for serve mode. I've already tried the following with no luck

plugins: [ { ...viteStaticCopy({ targets: [ { src: __dirname + '/../httpdocs/css', dest: 'css' } ] }), apply: 'serve' }, vue(), ],

Do you know how I can achieve this? Thanks!