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