swico 1.3.0 → 1.3.2
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 -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];
|
|
@@ -204,6 +202,7 @@ function start() {
|
|
|
204
202
|
case 0:
|
|
205
203
|
process.env.SWICO_ENV = 'dev';
|
|
206
204
|
if (SWICO_RESTART !== 'true') {
|
|
205
|
+
console.log('\n');
|
|
207
206
|
tools_1.toast.info("Swico v".concat(package_json_1.default.version));
|
|
208
207
|
tools_1.toast.info('Initializing development config...');
|
|
209
208
|
}
|
|
@@ -251,7 +250,6 @@ function start() {
|
|
|
251
250
|
case 9:
|
|
252
251
|
e_1 = _h.sent();
|
|
253
252
|
strErr_1 = e_1.toString();
|
|
254
|
-
console.log('2', strErr_1);
|
|
255
253
|
if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
|
|
256
254
|
tools_1.toast.error(strErr_1);
|
|
257
255
|
}
|