Skip to content

Posibility to only use for serve or build mode #77

Answered by sapphi-red
evilchis94 asked this question in Q&A
Discussion options

You must be logged in to vote

This plugin returns two plugins, one for serve mode and one for build mode.

export const viteStaticCopy = (options: ViteStaticCopyOptions): Plugin[] => {
const resolvedOptions = resolveOptions(options)
return [servePlugin(resolvedOptions), buildPlugin(resolvedOptions)]

You can filter out the plugin for build mode one.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evilchis94
Comment options

Answer selected by evilchis94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #76 on January 24, 2024 02:57.