swico 1.3.0 → 1.3.1
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 +1 -4
package/package.json
CHANGED
package/src/command/start.js
CHANGED
|
@@ -106,9 +106,7 @@ var handleWatch = function (projectPath, devServer, env) {
|
|
|
106
106
|
var replaceIndexText, _a;
|
|
107
107
|
return __generator(this, function (_b) {
|
|
108
108
|
switch (_b.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
console.log('eventName', eventName, filePath);
|
|
111
|
-
return [4, fs_extra_1.default.readFile(path_1.default.resolve(projectPath, "./src/.swico".concat(envPath, "index.js")), 'utf8')];
|
|
109
|
+
case 0: return [4, fs_extra_1.default.readFile(path_1.default.resolve(projectPath, "./src/.swico".concat(envPath, "index.js")), 'utf8')];
|
|
112
110
|
case 1:
|
|
113
111
|
replaceIndexText = _b.sent();
|
|
114
112
|
if (!['add', 'unlink'].includes(eventName)) return [3, 9];
|
|
@@ -251,7 +249,6 @@ function start() {
|
|
|
251
249
|
case 9:
|
|
252
250
|
e_1 = _h.sent();
|
|
253
251
|
strErr_1 = e_1.toString();
|
|
254
|
-
console.log('2', strErr_1);
|
|
255
252
|
if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
|
|
256
253
|
tools_1.toast.error(strErr_1);
|
|
257
254
|
}
|