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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user