how do i set the base href on build? I tried
--base-href /path/
--base-href=/path/
--base-href="/path/"
--base-href='/path/'
and none works
it keeps telling me base-href should start and end with /
This does the trick...
flutter build web --base-href "/path/"
If you use Windows MSYS (git bash, mingw, etc) you should use env MSYS_NO_PATHCONV=1:
$ MSYS_NO_PATHCONV=1 flutter build web --release \
--base-href="/openapi_generator_flutter/"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With