feat: iconify图标新增离线功能

This commit is contained in:
奔跑的面条
2023-12-17 00:12:50 +08:00
parent ce1a5476d6
commit 4c7c5cf4ba
10 changed files with 147 additions and 88 deletions
+9 -2
View File
@@ -25,7 +25,7 @@ export default defineConfig({
},
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js', //解决i8n警告
replacement: 'vue-i18n/dist/vue-i18n.cjs.js' //解决i8n警告
}
],
dedupe: ['vue']
@@ -40,7 +40,14 @@ export default defineConfig({
}
},
plugins: [
vue(),
vue({
template: {
compilerOptions: {
// 排除 iconify 图标影子组件编译报错
isCustomElement: tag => tag.startsWith('iconify-icon')
}
}
}),
monacoEditorPlugin({
languageWorkers: ['editorWorkerService', 'typescript', 'json', 'html']
}),