|
@@ -1,21 +1,21 @@
|
|
|
import { defineConfig,loadEnv } from 'vite'
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
-import styleImport from 'vite-plugin-style-import';
|
|
|
+// import styleImport from 'vite-plugin-style-import';
|
|
|
import path from "path";
|
|
|
// https://vitejs.dev/config/
|
|
|
export default ({mode})=>defineConfig({
|
|
|
base:loadEnv(mode, process.cwd()).VITE_APP_BASE_URL,
|
|
|
plugins: [
|
|
|
vue(),
|
|
|
- styleImport({
|
|
|
- libs: [
|
|
|
- {
|
|
|
- libraryName: 'vant',
|
|
|
- esModule: true,
|
|
|
- resolveStyle: (name) => `vant/es/${name}/style/index`,
|
|
|
- },
|
|
|
- ],
|
|
|
- }),
|
|
|
+ // styleImport({
|
|
|
+ // libs: [
|
|
|
+ // {
|
|
|
+ // libraryName: 'vant',
|
|
|
+ // esModule: true,
|
|
|
+ // resolveStyle: (name) => `vant/es/${name}/style/index`,
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // }),
|
|
|
],
|
|
|
resolve: {
|
|
|
alias: {
|