How to do in vite config when i have multi pages and dont want plugins config effect all entries. #18009
Unanswered
ganker-vito
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
background:
i have double pages in config.
plugins: [
// such as pwa
pwa() // -> this will effect all html, in a.html and b.html . but i dont want this plugin effect in a.html. how can i do in vite config?
],
build: {
rollupOptions: {
input: {
a: path.resolve(__dirname, 'a.html'),
b: path.resolve(__dirname, 'b.html')
},
}
}
Beta Was this translation helpful? Give feedback.
All reactions