|
@ -2,7 +2,7 @@ import { resolve } from 'path' |
|
|
import Vue from '@vitejs/plugin-vue' |
|
|
import Vue from '@vitejs/plugin-vue' |
|
|
import VueJsx from '@vitejs/plugin-vue-jsx' |
|
|
import VueJsx from '@vitejs/plugin-vue-jsx' |
|
|
import progress from 'vite-plugin-progress' |
|
|
import progress from 'vite-plugin-progress' |
|
|
import EslintPlugin from 'vite-plugin-eslint' |
|
|
// import EslintPlugin from 'vite-plugin-eslint'
|
|
|
import PurgeIcons from 'vite-plugin-purge-icons' |
|
|
import PurgeIcons from 'vite-plugin-purge-icons' |
|
|
import { ViteEjsPlugin } from 'vite-plugin-ejs' |
|
|
import { ViteEjsPlugin } from 'vite-plugin-ejs' |
|
|
// @ts-ignore
|
|
|
// @ts-ignore
|
|
@ -73,10 +73,10 @@ export function createVitePlugins() { |
|
|
resolvers: [ElementPlusResolver()], |
|
|
resolvers: [ElementPlusResolver()], |
|
|
exclude: [/[\\/]node_modules[\\/]/] |
|
|
exclude: [/[\\/]node_modules[\\/]/] |
|
|
}), |
|
|
}), |
|
|
EslintPlugin({ |
|
|
// EslintPlugin({
|
|
|
cache: false, |
|
|
// cache: false,
|
|
|
include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
|
|
|
// include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
|
|
|
}), |
|
|
// }),
|
|
|
VueI18nPlugin({ |
|
|
VueI18nPlugin({ |
|
|
runtimeOnly: true, |
|
|
runtimeOnly: true, |
|
|
compositionOnly: true, |
|
|
compositionOnly: true, |
|
|