basehref 0.0.2 basehref: ^0.0.2 copied to clipboard
builder to add or modify index.html base href tag
AngularDart base href rewriter (Builder) #
This builder take your web/index.html
ans add or edit the base href
according to your configuration.
The result is save in web/index.basehref.html
Using with AngularDart or in you dart web project :
Add this package to your pubspec.yaml
file :
dev_dependencies:
basehref: ^0.0.1
Then create or add to build.yaml
:
targets:
$default:
builders:
basehref|baseHrefBuilder:
enabled: true
options:
href: '/my/application/base/href/'
and build your project with :
pub run build_runner build
The result is stored in web/index.basehref.html
(to my knowledge there is no way to change the index.html
in place) :
https://stackoverflow.com/questions/52397358/dart-build-config-rename-buildstep-inputid-file