1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-31 00:33:02 +00:00

Fix <base href="/"> tags in hosted samples, if required. (#867)

* Fix <base href="/"> tags in hosted samples, if required.

* add trailing slash
This commit is contained in:
John Ryan
2021-08-09 08:56:39 -07:00
committed by GitHub
parent ba58407a26
commit a46327ef80
5 changed files with 58 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
import 'dart:io';
import 'package:path/path.dart' as p;
import 'common.dart';
import 'fix_base_tags.dart';
final ignoredDirectories = ['_tool', 'samples_index'];
@@ -40,6 +41,9 @@ main() async {
await _run(directory, 'flutter', ['build', 'web']);
await _run(directory, 'mv', [sourceBuildDir, targetDirectory]);
}
// Update the <base href> tags in each index.html file
await fixBaseTags();
}
// Invokes run() and exits if the sub-process failed.