update
This commit is contained in:
+7
-2
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user