| Index: lib/src/compiler.dart
|
| diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
|
| index e0d6812f340b07534930ee72115d897336ac054b..097a2dc07b56ffe5b9419cdc926e4e0b7d6b1f75 100644
|
| --- a/lib/src/compiler.dart
|
| +++ b/lib/src/compiler.dart
|
| @@ -304,10 +304,10 @@ class BatchCompiler extends AbstractCompiler {
|
| }
|
| }
|
|
|
| - new File(getOutputPath(source.uri)).openSync(mode: FileMode.WRITE)
|
| - ..writeStringSync(document.outerHtml)
|
| - ..writeStringSync('\n')
|
| - ..closeSync();
|
| + var outputFile = getOutputPath(source.uri);
|
| + new File(outputFile)
|
| + ..createSync(recursive: true)
|
| + ..writeAsStringSync(document.outerHtml + '\n');
|
| }
|
|
|
| html.DocumentFragment _linkLibraries(
|
|
|