platform/packages/hot/example/main.dart
thomashii@dukefirehawk.com 1e92db46a6 Migrated hot
2021-05-01 10:57:26 +08:00

13 lines
325 B
Dart

import 'dart:io';
import 'package:angel_hot/angel_hot.dart';
import 'server.dart';
void main() async {
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);
}