fix(platform): harden auth and build integration
This commit is contained in:
@@ -5,12 +5,16 @@ import Components from 'unplugin-vue-components/vite'
|
||||
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ command }) => ({
|
||||
base: '/',
|
||||
plugins: [
|
||||
vue(),
|
||||
AutoImport({ resolvers: [ElementPlusResolver()] }),
|
||||
Components({ resolvers: [ElementPlusResolver()] })
|
||||
// 生产构建时跳过 components.d.ts 生成,避免 Windows 下并发写文件触发 UNKNOWN 错误。
|
||||
Components({
|
||||
resolvers: [ElementPlusResolver()],
|
||||
dts: command === 'serve'
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -33,4 +37,4 @@ export default defineConfig({
|
||||
sourcemap: false,
|
||||
chunkSizeWarningLimit: 1500
|
||||
}
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user