Commit ad7871d4 authored by 邹绪超's avatar 邹绪超

fix: 修复cesium高级版本运维加载失败

parent da29648e
Pipeline #33891 skipped with stages
...@@ -2,7 +2,7 @@ const path = require('path'); ...@@ -2,7 +2,7 @@ const path = require('path');
const webpack = require('webpack'); const webpack = require('webpack');
const slash = require('slash2'); const slash = require('slash2');
const CopyPlugin = require('copy-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin');
const cesiumSource = './node_modules/cesium/Source'; const cesiumSource = './node_modules/cesium/Build/Cesium';
console.log(); console.log();
module.exports = options => ({ module.exports = options => ({
mode: options.mode, mode: options.mode,
...@@ -183,7 +183,7 @@ module.exports = options => ({ ...@@ -183,7 +183,7 @@ module.exports = options => ({
from: path.resolve(process.cwd(), './public'), from: path.resolve(process.cwd(), './public'),
}, },
{ {
from: path.join(process.cwd(), cesiumSource, '../Build/Cesium/Workers'), from: path.join(process.cwd(), cesiumSource, 'Workers'),
to: 'Workers', to: 'Workers',
}, },
{ {
...@@ -211,7 +211,7 @@ module.exports = options => ({ ...@@ -211,7 +211,7 @@ module.exports = options => ({
alias: { alias: {
'@': path.resolve(process.cwd(), './src'), '@': path.resolve(process.cwd(), './src'),
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 ),
}, },
}, },
devtool: options.devtool, devtool: options.devtool,
......
...@@ -87,11 +87,10 @@ ...@@ -87,11 +87,10 @@
"@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",
"@wisdom-cesium/cesium": "^1.0.9", "@wisdom-cesium/cesium": "^1.0.27",
"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",
"cesium": "^1.82.1",
"chalk": "2.4.2", "chalk": "2.4.2",
"compression": "1.7.4", "compression": "1.7.4",
"connected-react-router": "6.4.0", "connected-react-router": "6.4.0",
......
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