swico 1.7.2-beta.1 → 1.7.2-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/package.json +1 -1
- package/src/command/start.js +2 -0
- package/src/utils/tools.js +4 -2
package/package.json
CHANGED
package/src/command/start.js
CHANGED
|
@@ -180,6 +180,7 @@ var createCompileListener = function (compiler) {
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
if (stats === null || stats === void 0 ? void 0 : stats.hasWarnings()) {
|
|
183
|
+
console.log('111111', info);
|
|
183
184
|
var warnings = info.warnings;
|
|
184
185
|
warnings.some(function (item) {
|
|
185
186
|
var msg = item.message || item.stack;
|
|
@@ -249,6 +250,7 @@ function start() {
|
|
|
249
250
|
case 9:
|
|
250
251
|
e_1 = _h.sent();
|
|
251
252
|
strErr_1 = e_1.toString();
|
|
253
|
+
console.log('2222222', strErr_1);
|
|
252
254
|
if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
|
|
253
255
|
tools_1.toast.error(strErr_1);
|
|
254
256
|
}
|
package/src/utils/tools.js
CHANGED
|
@@ -219,13 +219,15 @@ exports.toast = {
|
|
|
219
219
|
console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(message));
|
|
220
220
|
}
|
|
221
221
|
else {
|
|
222
|
-
console.log(
|
|
223
|
-
if (Array.isArray(message)) {
|
|
222
|
+
console.log('message', message);
|
|
223
|
+
if (Array.isArray(message) && message.length > 0) {
|
|
224
|
+
console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
|
|
224
225
|
message.forEach(function (item) {
|
|
225
226
|
console.log("> ".concat(chalk_1.default.red.bold(item)));
|
|
226
227
|
});
|
|
227
228
|
}
|
|
228
229
|
else if (message) {
|
|
230
|
+
console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
|
|
229
231
|
console.log("> ".concat(chalk_1.default.red.bold(message)));
|
|
230
232
|
}
|
|
231
233
|
}
|