@taole/deploy-helper 1.1.8-beta.2 → 1.1.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lightDeploy.mjs +1 -1
- package/package.json +1 -1
package/lib/lightDeploy.mjs
CHANGED
|
@@ -74,7 +74,7 @@ export async function lightDeploy(config, mode) {
|
|
|
74
74
|
);
|
|
75
75
|
const version = projectJson.version;
|
|
76
76
|
// 校验cdnType只能是lib或者project
|
|
77
|
-
const cdnType = config.cdnType;
|
|
77
|
+
const cdnType = config.cdnType || 'project';
|
|
78
78
|
if (cdnType !== "lib" && cdnType !== "project") {
|
|
79
79
|
throw new Error("配置项 cdnType 仅支持 'lib' 或 'project'");
|
|
80
80
|
}
|