|
@@ -2,6 +2,7 @@ import { defineConfig } from "vite";
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import legacy from "@vitejs/plugin-legacy";
|
|
import legacy from "@vitejs/plugin-legacy";
|
|
import vitePluginImp from "vite-plugin-imp";
|
|
import vitePluginImp from "vite-plugin-imp";
|
|
|
|
+
|
|
const path = require("path");
|
|
const path = require("path");
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
@@ -30,7 +31,9 @@ export default defineConfig({
|
|
"~": path.resolve(__dirname, "./"),
|
|
"~": path.resolve(__dirname, "./"),
|
|
"@": path.resolve(__dirname, "./src/"),
|
|
"@": path.resolve(__dirname, "./src/"),
|
|
},
|
|
},
|
|
|
|
+ extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
},
|
|
},
|
|
|
|
+
|
|
css: {
|
|
css: {
|
|
preprocessorOptions: {
|
|
preprocessorOptions: {
|
|
less: {
|
|
less: {
|
|
@@ -72,8 +75,7 @@ export default defineConfig({
|
|
cssCodeSplit: true,
|
|
cssCodeSplit: true,
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
external: [],
|
|
external: [],
|
|
- plugins: [
|
|
|
|
- ],
|
|
|
|
|
|
+ plugins: [],
|
|
output: {
|
|
output: {
|
|
// name: name,
|
|
// name: name,
|
|
// exports: 'named',
|
|
// exports: 'named',
|