|
|
|
@ -8,7 +8,6 @@ import AutoImport from 'unplugin-auto-import/vite';
|
|
|
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
|
|
|
import Components from 'unplugin-vue-components/vite';
|
|
|
|
|
import removeConsole from 'vite-plugin-remove-console';
|
|
|
|
|
import { createStyleImportPlugin, ElementPlusResolve as ElementPlusStyleResolve } from 'vite-plugin-style-import';
|
|
|
|
|
import svgLoader from 'vite-svg-loader';
|
|
|
|
|
|
|
|
|
|
export default (configEnv) => {
|
|
|
|
@ -48,10 +47,6 @@ export default (configEnv) => {
|
|
|
|
|
transformOn: true,
|
|
|
|
|
}),
|
|
|
|
|
svgLoader(),
|
|
|
|
|
createStyleImportPlugin({
|
|
|
|
|
include: ['**/*.js', '**/*.ts', '**/*.tsx', '**/*.jsx', '**/*.vue'],
|
|
|
|
|
resolves: [ElementPlusStyleResolve()],
|
|
|
|
|
}),
|
|
|
|
|
AutoImport({
|
|
|
|
|
include: [/\.[jt]sx?$/, /\.vue\??/],
|
|
|
|
|
imports: [
|
|
|
|
|