platform/packages/hot/example/main.dart
Tobe O 6890bbf53f Add 'packages/hot/' from commit 'ed1422b4fbfdc0bfdd44dd54900f03fb9838ad9b'
git-subtree-dir: packages/hot
git-subtree-mainline: 0aab437ca1
git-subtree-split: ed1422b4fb
2020-02-15 18:28:21 -05:00

13 lines
320 B
Dart

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