1 Star 0 Fork 300

天然喵/L7

forked from antv/L7 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.mjs 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
thinkgis 提交于 2023-12-21 16:39 . Vite demo & test (#2200)
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: {
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/natural-meow/L7.git
git@gitee.com:natural-meow/L7.git
natural-meow
L7
L7
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385