'完成登录注册页面'
This commit is contained in:
@@ -57,6 +57,17 @@ export default defineConfig(({ mode, command }) => {
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
AutoImport({
|
||||
//安装两行后你会发现在组件中不用再导入ref,reactive等
|
||||
imports: ['vue', 'vue-router','@vueuse/core','pinia'],
|
||||
dts: 'auto-import.d.ts',
|
||||
//ant-design-vue
|
||||
resolvers: [AntDesignVueResolver()],
|
||||
eslintrc: {
|
||||
enabled: true // 1、改为true用于生成eslint配置。2、生成后改回false,避免重复生成消耗
|
||||
|
||||
}
|
||||
}),
|
||||
createHtmlPlugin({
|
||||
minify: true,
|
||||
/**
|
||||
@@ -123,22 +134,13 @@ export default defineConfig(({ mode, command }) => {
|
||||
targets: ['chrome 52'], // 需要兼容的目标列表
|
||||
additionalLegacyPolyfills: ['regenerator-runtime/runtime'] // 面向IE11时需要此插件
|
||||
}),
|
||||
AutoImport({
|
||||
//安装两行后你会发现在组件中不用再导入ref,reactive等
|
||||
imports: ['vue', 'vue-router','@vueuse/core'],
|
||||
dts: 'auto-import.d.ts',
|
||||
//ant-design-vue
|
||||
resolvers: [AntDesignVueResolver()],
|
||||
eslintrc: {
|
||||
enabled: true // 1、改为true用于生成eslint配置。2、生成后改回false,避免重复生成消耗
|
||||
|
||||
}
|
||||
}),
|
||||
Components({
|
||||
dts: true,
|
||||
// 指定自动导入的组件位置,默认是 src/components
|
||||
dirs: ['src/components'],
|
||||
dirs: ['src/components','src/views'],
|
||||
//ant-design-vue
|
||||
resolvers: [AntDesignVueResolver({ importStyle: true, resolveIcons: true })]
|
||||
resolvers: [AntDesignVueResolver({ importStyle: "less", resolveIcons: true })]
|
||||
})
|
||||
],
|
||||
optimizeDeps: {
|
||||
@@ -198,4 +200,4 @@ export default defineConfig(({ mode, command }) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user