Fix build to sink
This commit is contained in:
parent
8f2ef4f740
commit
8062399b35
2 changed files with 5 additions and 1 deletions
|
@ -372,6 +372,10 @@ class VirtualDirectory implements AngelPlugin {
|
|||
message:
|
||||
'"${entity.absolute.path}" did not require compilation; skipping it.');
|
||||
else {
|
||||
var outFile = new File(compiled.filename);
|
||||
if (!await outFile.exists()) await outFile.create(recursive: true);
|
||||
var sink = outFile.openWrite();
|
||||
await compiled.content.pipe(sink);
|
||||
p.finish(
|
||||
message:
|
||||
'Built "${entity.absolute.path}" to "${compiled.filename}".',
|
||||
|
|
|
@ -4,7 +4,7 @@ environment:
|
|||
sdk: ">=1.19.0"
|
||||
homepage: https://github.com/angel-dart/static
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
version: 1.2.1
|
||||
version: 1.2.2
|
||||
dependencies:
|
||||
angel_framework: ^1.0.0-dev
|
||||
cli_util: ^0.1.1
|
||||
|
|
Loading…
Reference in a new issue