swico 0.8.1 → 0.8.2-beta1
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 +10 -0
package/package.json
CHANGED
package/src/command/start.js
CHANGED
|
@@ -164,6 +164,16 @@ function start() {
|
|
|
164
164
|
oriLogger = compiler.getInfrastructureLogger;
|
|
165
165
|
compiler.getInfrastructureLogger = getMockGetLogger(compiler);
|
|
166
166
|
devServer = new webpack_dev_server_1.default(__assign(__assign({}, startConfig.devServer), { port: availablePort }), compiler);
|
|
167
|
+
compiler.hooks.beforeCompile.tap('xxx', function () {
|
|
168
|
+
tools_1.toast.info('Compiling...');
|
|
169
|
+
});
|
|
170
|
+
compiler.hooks.done.tap('yyy', function (stats) {
|
|
171
|
+
var info = stats.toJson();
|
|
172
|
+
if (stats.hasErrors() || stats.hasWarnings()) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
tools_1.toast.info("Compiled successfully in ".concat(info.time, "ms"));
|
|
176
|
+
});
|
|
167
177
|
compiler.watch({}, function (err, stats) {
|
|
168
178
|
var info = stats.toJson();
|
|
169
179
|
if (err || stats.hasErrors() || stats.hasWarnings()) {
|