platform/example/main.dart
2019-02-06 16:32:40 -05:00

23 lines
547 B
Dart

import 'dart:isolate';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_hot/angel_hot.dart';
main(_, [SendPort sendPort]) {
return runHot(sendPort, (client) {
var app = Angel();
if (client != null) {
// Specify which paths to listen to.
client.watchPaths([
'src',
'main.dart',
'package:angel_hot/angel_hot.dart',
]);
// When the top-level triggers a hot reload, shut down the existing server.
client.onReload.listen((reload) {
});
}
});
}