swico 0.8.2-beta7 → 0.8.2-beta9
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 +9 -0
package/package.json
CHANGED
package/src/command/start.js
CHANGED
|
@@ -138,6 +138,7 @@ var createCompileListener = function (compiler) {
|
|
|
138
138
|
});
|
|
139
139
|
compiler.hooks;
|
|
140
140
|
compiler.hooks.done.tap('done', function (stats) {
|
|
141
|
+
console.log('done');
|
|
141
142
|
var info = stats.toJson();
|
|
142
143
|
if (stats.hasErrors()) {
|
|
143
144
|
tools_1.toast.error(info.errors.map(function (item) { return item.stack; }));
|
|
@@ -148,6 +149,14 @@ var createCompileListener = function (compiler) {
|
|
|
148
149
|
}
|
|
149
150
|
tools_1.toast.info("Compiled complete in ".concat(info.time, "ms"));
|
|
150
151
|
});
|
|
152
|
+
compiler.watch({}, function (err, stats) {
|
|
153
|
+
console.log('watch');
|
|
154
|
+
var info = stats.toJson();
|
|
155
|
+
if (err || stats.hasErrors() || stats.hasWarnings()) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
tools_1.toast.info("Compiled successfully in ".concat(info.time, "ms"), { wrap: false });
|
|
159
|
+
});
|
|
151
160
|
};
|
|
152
161
|
function start() {
|
|
153
162
|
return __awaiter(this, void 0, void 0, function () {
|