Commit fd59af89 authored by 邓超's avatar 邓超

fix: 修改gis打包配置

parent 2caa7087
Pipeline #53236 waiting for manual action with stages
...@@ -76,10 +76,7 @@ module.exports = options => ({ ...@@ -76,10 +76,7 @@ module.exports = options => ({
.split('/') .split('/')
.map(a => a.replace(/([A-Z])/g, '-$1')) .map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase()); .map(a => a.toLowerCase());
return `panda-pro${arr.join('-')}-${localName}`.replace( return `panda-pro${arr.join('-')}-${localName}`.replace(/--/g, '-');
/--/g,
'-',
);
} }
return localName; return localName;
...@@ -177,10 +174,10 @@ module.exports = options => ({ ...@@ -177,10 +174,10 @@ module.exports = options => ({
}), }),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
process: nodeLibs.process process: nodeLibs.process,
}), }),
new FastRefreshPlugin({ new FastRefreshPlugin({
overlay: false overlay: false,
}), }),
new CopyPlugin([ new CopyPlugin([
{ {
...@@ -217,6 +214,10 @@ module.exports = options => ({ ...@@ -217,6 +214,10 @@ module.exports = options => ({
components: path.resolve(process.cwd(), './src/components'), components: path.resolve(process.cwd(), './src/components'),
cesium: path.resolve(process.cwd(), cesiumSource), cesium: path.resolve(process.cwd(), cesiumSource),
react: path.resolve(process.cwd(), './node_modules/react'), react: path.resolve(process.cwd(), './node_modules/react'),
'@esri/arcgis-html-sanitizer': path.resolve(
process.cwd(),
'./node_modules/@esri/arcgis-html-sanitizer/dist/esm/index.js',
),
}, },
fallback: { fallback: {
...Object.keys(nodeLibs).reduce((memo, key) => { ...Object.keys(nodeLibs).reduce((memo, key) => {
......
...@@ -89,12 +89,11 @@ ...@@ -89,12 +89,11 @@
"@babel/polyfill": "7.4.3", "@babel/polyfill": "7.4.3",
"@babel/preset-typescript": "^7.12.1", "@babel/preset-typescript": "^7.12.1",
"@babel/runtime": "^7.10.5", "@babel/runtime": "^7.10.5",
"@esri/arcgis-html-sanitizer": "^2.9.0",
"@esri/calcite-colors": "6.0.3", "@esri/calcite-colors": "6.0.3",
"@wisdom-cesium/cesium": "^1.0.78", "@wisdom-cesium/cesium": "^1.0.78",
"@wisdom-map/amap": "^1.0.49--27.8", "@wisdom-map/amap": "1.1.0-beta.34",
"@wisdom-map/arcgismap": "^1.1.0", "@wisdom-map/arcgismap": "1.4.0-6",
"@wisdom-map/basemap": "^1.0.12-50", "@wisdom-map/basemap": "1.1.0-2",
"ace-builds": "^1.4.12", "ace-builds": "^1.4.12",
"antd-img-crop": "^3.13.2", "antd-img-crop": "^3.13.2",
"bizcharts": "^4.0.15", "bizcharts": "^4.0.15",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment