crabatool 1.0.839 → 1.0.840
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/package.json +1 -1
- package/tool/start.js +5 -3
package/package.json
CHANGED
package/tool/start.js
CHANGED
|
@@ -242,9 +242,11 @@ class Start {
|
|
|
242
242
|
if (config.virtualName) {
|
|
243
243
|
basePath = config.virtualName;
|
|
244
244
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
if (!config.notCheckCraba) {
|
|
246
|
+
var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
|
|
247
|
+
if (!fs.existsSync(crabaJs)) {
|
|
248
|
+
throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
|
|
249
|
+
}
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
|