swico 0.8.1 → 0.8.2-beta2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-beta2",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -164,9 +164,12 @@ 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.watch({}, function (err, stats) {
167
+ compiler.hooks.beforeCompile.tap('xxx', function () {
168
+ tools_1.toast.info('Compiling...');
169
+ });
170
+ compiler.hooks.done.tap('yyy', function (stats) {
168
171
  var info = stats.toJson();
169
- if (err || stats.hasErrors() || stats.hasWarnings()) {
172
+ if (stats.hasErrors() || stats.hasWarnings()) {
170
173
  return;
171
174
  }
172
175
  tools_1.toast.info("Compiled successfully in ".concat(info.time, "ms"));