6 Star 8 Fork 2

地球可视化实验室(EarthSDK&CesiumLab)/earthsdk2-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 4.08 KB
一键复制 编辑 原始数据 按行查看 历史
Ezms 提交于 2024-09-25 19:13 . 更新3dtileset拾取信息高亮
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const path = require('path');
module.exports = {
filenameHashing: false,
pages: {
index: {
entry: 'src/pages/page_index/main.js',
},
example: {
entry: 'src/pages/page_editor/main.js',
}
},
publicPath: './',
lintOnSave: false,
chainWebpack(config) {
config.plugin('monaco').use(new MonacoWebpackPlugin())
},
configureWebpack: {
optimization: {
splitChunks: false,
},
externals: {
// @cesium
cesium: 'Cesium', // xr-utils中有cesium相关的函数
// @xbsj-renderer
'xbsj-renderer/dist-node/xr-base-utils': 'xbsj["xr-base-utils"]',
'xbsj-renderer/dist-node/xr-math': 'xbsj["xr-math"]',
'xbsj-renderer/dist-node/xr-utils': 'xbsj["xr-utils"]',
'xbsj-renderer/dist-node/xr-cesium': 'xbsj["xr-cesium"]',
// @xbsj-xe2
'xbsj-xe2/dist-node/xe2': 'XE2["xe2"]',
'xbsj-xe2/dist-node/xe2-base': 'XE2["xe2-base"]',
'xbsj-xe2/dist-node/xe2-base-utils': 'XE2["xe2-base-utils"]',
'xbsj-xe2/dist-node/xe2-utils': 'XE2["xe2-utils"]',
'xbsj-xe2/dist-node/xe2-cesium': 'XE2["xe2-cesium"]',
'xbsj-xe2/dist-node/xe2-mapbox': 'XE2["xe2-mapbox"]',
'xbsj-xe2/dist-node/xe2-ue': 'XE2["xe2-ue"]',
'xbsj-xe2/dist-node/utility-xe2-plugin': 'XE2["utility-xe2-plugin"]',
'xbsj-xe2/dist-node/xe2-all-in-one': 'XE2["xe2-all-in-one"]',
'xbsj-xe2/dist-node/xe2-base-objects': 'XE2["xe2-base-objects"]',
'xbsj-xe2/dist-node/xe2-cesium-objects': 'XE2["xe2-cesium-objects"]',
'xbsj-xe2/dist-node/xe2-ue-objects': 'XE2["xe2-ue-objects"]',
'xbsj-xe2/dist-node/xe2-openlayers': 'XE2["xe2-openlayers"]',
'xbsj-xe2/dist-node/xe2-openlayers-objects': 'XE2["xe2-openlayers-objects"]',
// plugins
'smplotting-xe2-plugin/dist-node/smplotting-xe2-plugin-main': 'XE2["smplotting-xe2-plugin-main"]',
'esobjs-xe2-plugin/dist-node/esobjs-xe2-plugin-main': 'XE2["esobjs-xe2-plugin-main"]',
},
resolve: {
alias: {
"@": path.resolve('./src'),
}
},
plugins: [
new CopyWebpackPlugin([
{
from: './node_modules/xbsj-xe2/dist-web',
to: 'js/xbsj-xe2/dist-web',
toType: 'dir'
},
{
from: './node_modules/xbsj-xe2-assets/dist-web',
to: 'js/xbsj-xe2-assets/dist-web',
toType: 'dir'
},
{
from: './node_modules/esobjs-xe2-plugin/dist-web',
to: 'js/esobjs-xe2-plugin/dist-web',
toType: 'dir'
},
{
from: './node_modules/esobjs-xe2-plugin-assets/dist-web',
to: 'js/esobjs-xe2-plugin-assets/dist-web',
toType: 'dir'
},
{
from: './node_modules/vue-xe2-plugin/dist-web',
to: 'js/vue-xe2-plugin/dist-web',
toType: 'dir'
},
{
from: './src/examples',
to: 'examples',
toType: 'dir'
},
{
from: './src/css',
to: 'css',
toType: 'dir'
},
{
from: './src/scripts',
to: 'js',
toType: 'dir'
},
{
from: './src/scripts',
to: 'js',
toType: 'dir'
}
]),
],
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/cesiumlab/earthsdk2-examples.git
git@gitee.com:cesiumlab/earthsdk2-examples.git
cesiumlab
earthsdk2-examples
earthsdk2-examples
master

搜索帮助