platform/packages/hot/example/main.dart

14 lines
325 B
Dart
Raw Normal View History

import 'dart:io';
2017-06-06 12:07:59 +00:00
import 'package:angel_hot/angel_hot.dart';
import 'server.dart';
2017-06-06 12:07:59 +00:00
2021-05-01 02:57:26 +00:00
void main() async {
2019-05-01 09:51:27 +00:00
var hot = HotReloader(createServer, [
Directory('src'),
'server.dart',
// Also allowed: Platform.script,
Uri.parse('package:angel_hot/angel_hot.dart')
]);
await hot.startServer('127.0.0.1', 3000);
}