1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/wildidea-miitvip-captcha

Клонировать/Скачать
vite.config.ts 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
makeit.vip Отправлено 08.02.2023 13:27 b9e61aa
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import VueJsx from '@vitejs/plugin-vue-jsx'
import EslintPlugin from 'vite-plugin-eslint'
// eslint-disable-next-line import/no-unresolved
import Components from 'unplugin-vue-components/vite'
// eslint-disable-next-line import/no-unresolved
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
import path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir)
export default defineConfig({
resolve: {
alias: {
'@': resolve('example'),
'@src': resolve('src'),
'makeit-captcha': resolve('src'),
'makeit-captcha/style': resolve('src/style.ts')
}
},
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true
}
}
},
optimizeDeps: {
include: ['vue', 'axios']
},
server: {
proxy: {
'/v1': {
target: 'http://local-api.makeit.vip',
changeOrigin: true
}
}
},
plugins: [
vue(),
VueJsx(),
EslintPlugin(),
Components({
dts: true,
resolvers: [AntDesignVueResolver()]
})
],
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment'
}
})

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/wildidea-miitvip-captcha.git
git@api.gitlife.ru:oschina-mirror/wildidea-miitvip-captcha.git
oschina-mirror
wildidea-miitvip-captcha
wildidea-miitvip-captcha
main