|
@ -7,6 +7,7 @@ import { warpperEnv, regExps } from "./build"; |
|
|
import fullReload from "vite-plugin-full-reload"; |
|
|
import fullReload from "vite-plugin-full-reload"; |
|
|
import { viteMockServe } from "vite-plugin-mock"; |
|
|
import { viteMockServe } from "vite-plugin-mock"; |
|
|
import ElementPlus from "unplugin-element-plus/vite"; |
|
|
import ElementPlus from "unplugin-element-plus/vite"; |
|
|
|
|
|
import removeConsole from "vite-plugin-remove-console"; |
|
|
import { UserConfigExport, ConfigEnv, loadEnv } from "vite"; |
|
|
import { UserConfigExport, ConfigEnv, loadEnv } from "vite"; |
|
|
import themePreprocessorPlugin from "@zougt/vite-plugin-theme-preprocessor"; |
|
|
import themePreprocessorPlugin from "@zougt/vite-plugin-theme-preprocessor"; |
|
|
|
|
|
|
|
@ -82,6 +83,8 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => { |
|
|
vue(), |
|
|
vue(), |
|
|
// jsx、tsx语法支持
|
|
|
// jsx、tsx语法支持
|
|
|
vueJsx(), |
|
|
vueJsx(), |
|
|
|
|
|
// 线上环境删除console
|
|
|
|
|
|
removeConsole(), |
|
|
// 修改layout文件夹下的文件时自动重载浏览器 解决 https://github.com/xiaoxian521/vue-pure-admin/issues/170
|
|
|
// 修改layout文件夹下的文件时自动重载浏览器 解决 https://github.com/xiaoxian521/vue-pure-admin/issues/170
|
|
|
fullReload(["src/layout/**/*"]), |
|
|
fullReload(["src/layout/**/*"]), |
|
|
// 自定义主题
|
|
|
// 自定义主题
|
|
|