platform/packages/hot/example/main.dart
2024-10-12 18:45:27 -07:00

13 lines
337 B
Dart

import 'dart:io';
import 'package:protevus_hot/protevus_hot.dart';
import 'server.dart';
void main() async {
var hot = HotReloader(createServer, [
Directory('src'),
'server.dart',
// Also allowed: Platform.script,
Uri.parse('package:protevus_hot/protevus_hot.dart')
]);
await hot.startServer('127.0.0.1', 3000);
}