代码拉取完成,页面将自动刷新
同步操作将从 antv/L7 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import { defineConfig } from 'vite';
import Copy from 'vite-plugin-cp';
import vitePluginString from 'vite-plugin-string';
import react from '@vitejs/plugin-react'
import path from 'path';
export default defineConfig({
root: path.resolve('./examples'),
server: { port: 8080, open: '/' },
base: './',
resolve: {
alias: {
'@antv/l7': path.resolve(__dirname, './packages/l7/src'),
'@antv/l7-maps': path.resolve(__dirname, './packages/maps/src'),
'@antv/l7-core': path.resolve(__dirname, './packages/core/src'),
'@antv/l7-component': path.resolve(__dirname, './packages/component/src'),
'@antv/l7-three': path.resolve(__dirname, './packages/three/src'),
'@antv/l7-layers': path.resolve(__dirname, './packages/layers/src'),
'@antv/l7-map': path.resolve(__dirname, './packages/map/src'),
'@antv/l7-renderer': path.resolve(__dirname, './packages/renderer/src'),
'@antv/l7-scene': path.resolve(__dirname, './packages/scene/src'),
'@antv/l7-source': path.resolve(__dirname, './packages/source/src'),
'@antv/l7-utils': path.resolve(__dirname, './packages/utils/src'),
}
},
plugins: [
react(),
vitePluginString({
compress:false
}),
Copy({
targets: [
{
src: 'node_modules/@antv/g-device-api/dist/pkg/glsl_wgsl_compiler_bg.wasm',
dest: 'examples/public'
}
]
}),
],
esbuild: true,
define: {
'process.env.VERSION': JSON.stringify('1.0.0'),
global: {
},
},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。