1 Star 0 Fork 0

问花有木/vue-earth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
devServer:{
//port:9530,
proxy: {
'/api': {
target: 'http://localhost:9000',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/api': ''
}
}
}
},
configureWebpack: config => {
const cwp = new CopyWebpackPlugin({
patterns: [
{
from: './src/js',
to: 'XbsjEarthUI',
toType: 'dir'
},
{
from: './node_modules/earthsdk/dist/XbsjCesium',
to: 'XbsjCesium',
toType: 'dir'
},
{
from: './node_modules/earthsdk/dist/XbsjEarth',
to: 'XbsjEarth',
toType: 'dir'
},
{
from: './node_modules/earthsdk-plotting-symbol/dist/XbsjEarth-Plugins/plottingSymbol',
to: 'XbsjEarth-Plugins/plottingSymbol',
toType: 'dir'
},
{
from: './node_modules/earthsdk-custom-primitive/dist/XbsjEarth-Plugins/customPrimitive',
to: 'XbsjEarth-Plugins/customPrimitive',
toType: 'dir'
},
{
from: 'Static/XbsjEarth-Private-Plugins',
to: 'XbsjEarth-Plugins',
toType: 'dir'
},
{
from: 'Static/assets',
to: 'XbsjEarthUI/assets',
toType: 'dir'
},
]
})
config.plugins.push(cwp)
},
runtimeCompiler: true,
lintOnSave: false
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ask_flowers_and_trees/vue-earth.git
git@gitee.com:ask_flowers_and_trees/vue-earth.git
ask_flowers_and_trees
vue-earth
vue-earth
master

搜索帮助