Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit aad28da

Browse files
committed
bug
1 parent b7a3c88 commit aad28da

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: isboyjc
33
* @Date: 2019-12-14 16:37:27
44
* @LastEditors: isboyjc
5-
* @LastEditTime: 2020-03-27 14:01:09
5+
* @LastEditTime: 2020-04-13 13:44:23
66
* @Description: service plugin 修改webpack配置
77
*/
88
const path = require("path")
@@ -36,7 +36,7 @@ module.exports = (api, opts) => {
3636
plugins: [
3737
new webpack.DefinePlugin({
3838
// 在cesium中定义用于加载资源的相对基路径
39-
CESIUM_BASE_URL: JSON.stringify("")
39+
CESIUM_BASE_URL: JSON.stringify(opts.publicPath || "")
4040
}),
4141
// 对build生效,拷贝到dist目录下。如:dist/Assets
4242
new CopyWebpackPlugin([

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-cesium",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Cesium encapsulation based on Vue cli",
55
"main": "index.js",
66
"scripts": {

prompts.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: isboyjc
33
* @Date: 2019-12-14 19:39:35
44
* @LastEditors: isboyjc
5-
* @LastEditTime: 2020-04-08 09:48:39
5+
* @LastEditTime: 2020-04-13 13:47:10
66
* @Description: 提示代码,以供用户在命令行选择
77
*/
88
module.exports = [
@@ -70,23 +70,23 @@ module.exports = [
7070
"1.19.0",
7171
"1.18.0",
7272
"1.17.0",
73-
"1.16.0",
73+
"1.16.0"
7474
],
7575
message:
76-
"Please choose a version of 'cesium' from this list(请在列表中选择 cesium 的版本)",
76+
"Please choose a version of 'cesium' from this list(请在列表中选择 cesium 的版本)"
7777
},
7878
{
7979
name: `addWidgetsToMain`,
8080
type: "confirm",
8181
message:
8282
"Whether to import styles globally. This operation will automatically import widgets.css in main.js(是否全局引入样式,该操作将自动在main.js引入widgets.css)?",
83-
default: true,
83+
default: true
8484
},
8585
{
8686
name: `addExample`,
8787
type: "confirm",
8888
message:
8989
"Whether to add sample components to the project components directory(是否添加示例组件到项目components目录)?",
90-
default: true,
91-
},
90+
default: true
91+
}
9292
]

0 commit comments

Comments
 (0)