mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-06 09:26:46 +08:00
接口初始化 第一版
This commit is contained in:
@@ -2,6 +2,7 @@ import {defineConfig} from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import legacy from '@vitejs/plugin-legacy'
|
||||
import {viteMockServe} from 'vite-plugin-mock'
|
||||
import topLevelAwait from "vite-plugin-top-level-await";
|
||||
|
||||
const path = require('path')
|
||||
|
||||
@@ -9,8 +10,12 @@ export default defineConfig(({command}) =>
|
||||
({
|
||||
plugins: [
|
||||
vue(),
|
||||
legacy({
|
||||
targets: ['chrome 52', 'defaults', 'not IE 11']
|
||||
// legacy({
|
||||
// targets: ['chrome 64', 'defaults', 'not IE 11']
|
||||
// }),
|
||||
topLevelAwait({
|
||||
promiseExportName: '__tla',
|
||||
promiseImportName: i => `__tla_${i}`
|
||||
}),
|
||||
viteMockServe({
|
||||
mockPath: './src/mock/mocks',
|
||||
|
||||
Reference in New Issue
Block a user