vite关于WebComponent的配置

Last updated on January 22, 2023 pm

配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => tag.includes('-')
}
},
}),
],
resolve:{
alias:{
vue:'vue/dist/vue.esm-bundler.js'
}
}
})


vite关于WebComponent的配置
https://angelaggression.github.io/2023/01/22/vite关于WebComponent的配置/
Author
BurnedWings
Posted on
January 22, 2023
Licensed under