basehref 0.0.2 copy "basehref: ^0.0.2" to clipboard
basehref: ^0.0.2 copied to clipboard

outdated

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

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

builder to add or modify index.html base href tag

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

build, build_config, html

More

Packages that depend on basehref