|
@@ -2,30 +2,17 @@ import { fileURLToPath, URL } from 'node:url';
|
|
|
import { defineConfig } from 'vite';
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
import postcssPxToViewport from 'postcss-px-to-viewport';
|
|
|
-import commonjs from 'vite-plugin-commonjs';
|
|
|
-
|
|
|
export default defineConfig({
|
|
|
publicDir: 'public',
|
|
|
- plugins: [
|
|
|
- vue(),
|
|
|
- commonjs({
|
|
|
- include: /utils\/map\/CityGis.Bridge.js/,
|
|
|
- exclude: [],
|
|
|
- extensions: ['.js'],
|
|
|
- ignoreGlobal: false,
|
|
|
- sourceMap: false,
|
|
|
- namedExports: {},
|
|
|
- ignore: [],
|
|
|
- transformMixedEsModules: true
|
|
|
- })
|
|
|
- ],
|
|
|
+ base: './',
|
|
|
+ plugins: [vue()],
|
|
|
server: {
|
|
|
port: '8090',
|
|
|
host: '0.0.0.0',
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
|
|
|
- target: 'http://10.1.161.180:7878/',
|
|
|
+ target: 'http://10.1.161.187:7878/',
|
|
|
secure: false,
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
@@ -37,13 +24,6 @@ export default defineConfig({
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(/^\/cityGIsApi/, '')
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
resolve: {
|