This repository was archived by the owner on Mar 11, 2024. It is now read-only.
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
* @Author : isboyjc
3
3
* @Date : 2019-12-14 16:37:27
4
4
* @LastEditors : isboyjc
5
- * @LastEditTime : 2020-03-27 14:01:09
5
+ * @LastEditTime : 2020-04-13 13:44:23
6
6
* @Description : service plugin 修改webpack配置
7
7
*/
8
8
const path = require ( "path" )
@@ -36,7 +36,7 @@ module.exports = (api, opts) => {
36
36
plugins : [
37
37
new webpack . DefinePlugin ( {
38
38
// 在cesium中定义用于加载资源的相对基路径
39
- CESIUM_BASE_URL : JSON . stringify ( "" )
39
+ CESIUM_BASE_URL : JSON . stringify ( opts . publicPath || "" )
40
40
} ) ,
41
41
// 对build生效,拷贝到dist目录下。如:dist/Assets
42
42
new CopyWebpackPlugin ( [
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-cli-plugin-cesium" ,
3
- "version" : " 1.1.4 " ,
3
+ "version" : " 1.1.5 " ,
4
4
"description" : " Cesium encapsulation based on Vue cli" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 2
2
* @Author : isboyjc
3
3
* @Date : 2019-12-14 19:39:35
4
4
* @LastEditors : isboyjc
5
- * @LastEditTime : 2020-04-08 09:48:39
5
+ * @LastEditTime : 2020-04-13 13:47:10
6
6
* @Description : 提示代码,以供用户在命令行选择
7
7
*/
8
8
module . exports = [
@@ -70,23 +70,23 @@ module.exports = [
70
70
"1.19.0" ,
71
71
"1.18.0" ,
72
72
"1.17.0" ,
73
- "1.16.0" ,
73
+ "1.16.0"
74
74
] ,
75
75
message :
76
- "Please choose a version of 'cesium' from this list(请在列表中选择 cesium 的版本)" ,
76
+ "Please choose a version of 'cesium' from this list(请在列表中选择 cesium 的版本)"
77
77
} ,
78
78
{
79
79
name : `addWidgetsToMain` ,
80
80
type : "confirm" ,
81
81
message :
82
82
"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
84
84
} ,
85
85
{
86
86
name : `addExample` ,
87
87
type : "confirm" ,
88
88
message :
89
89
"Whether to add sample components to the project components directory(是否添加示例组件到项目components目录)?" ,
90
- default : true ,
91
- } ,
90
+ default : true
91
+ }
92
92
]
You can’t perform that action at this time.
0 commit comments