代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。