Описание изменений
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { fileURLToPath, URL } from 'node:url';
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue({
|
||||
template: {
|
||||
compilerOptions: {
|
||||
isCustomElement: (tag) =>
|
||||
tag.startsWith('appkit-') ||
|
||||
tag.startsWith('w3m-')
|
||||
}
|
||||
plugins: [vue({
|
||||
template: {
|
||||
compilerOptions: {
|
||||
// Указываем Vue, что appkit-* компоненты являются кастомными элементами
|
||||
isCustomElement: (tag) => tag.startsWith('appkit-')
|
||||
}
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
}
|
||||
}
|
||||
});
|
||||
})]
|
||||
})
|
||||
Reference in New Issue
Block a user