This commit is contained in:
zk
2023-12-19 12:41:15 +08:00
parent 9b5be1af25
commit 5342774ca5
9 changed files with 50 additions and 39 deletions
+7 -2
View File
@@ -1,6 +1,8 @@
import {defineConfig} from 'vite';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import {resolve} from 'path';
import { resolve } from 'path';
import resolveExternalsPlugin from 'vite-plugin-resolve-externals';
function pathResolve(dir: string) {
return resolve(process.cwd(), '.', dir);
@@ -10,6 +12,9 @@ function pathResolve(dir: string) {
export default defineConfig({
plugins: [
vue(),
resolveExternalsPlugin({
AMap: 'AMap',
}),
],
css: {
preprocessorOptions: {