Index: pkg/dev_compiler/lib/src/compiler/command.dart |
diff --git a/pkg/dev_compiler/lib/src/compiler/command.dart b/pkg/dev_compiler/lib/src/compiler/command.dart |
index a51cf88d62118b3450404a0f81e5af6bab4ae577..c019e6f38ff93dbee2c05855556786a1d9bfadd1 100644 |
--- a/pkg/dev_compiler/lib/src/compiler/command.dart |
+++ b/pkg/dev_compiler/lib/src/compiler/command.dart |
@@ -154,11 +154,17 @@ void _compile(ArgResults argResults, void printFn(Object obj)) { |
// Write JS file, as well as source map and summary (if requested). |
for (var i = 0; i < outPaths.length; i++) { |
- var outPath = outPaths[i]; |
- module.writeCodeSync(moduleFormats[i], singleOutFile, outPath); |
- if (module.summaryBytes != null) { |
- var summaryPath = |
- path.withoutExtension(outPath) + '.${compilerOpts.summaryExtension}'; |
+ module.writeCodeSync(moduleFormats[i], outPaths[i], |
+ singleOutFile: singleOutFile); |
+ } |
+ if (module.summaryBytes != null) { |
+ var summaryPaths = compilerOpts.summaryOutPath != null |
+ ? [compilerOpts.summaryOutPath] |
+ : outPaths.map((p) => |
+ '${path.withoutExtension(p)}.${compilerOpts.summaryExtension}'); |
+ |
+ // place next to ever compiled module |
vsm
2016/11/02 00:46:48
ever -> every
Jennifer Messerly
2016/11/02 01:16:41
done!
|
+ for (var summaryPath in summaryPaths) { |
// Only overwrite if summary changed. This plays better with timestamp |
// based build systems. |
var file = new File(summaryPath); |