Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

[WIP] implement --basepath flag (#180) #199

Closed
wants to merge 6 commits into from
Closed

[WIP] implement --basepath flag (#180) #199

wants to merge 6 commits into from

Conversation

Rich-Harris
Copy link
Member

This is proving somewhat trickier than I thought. Still a few tests failing.

It allows you to specify a --basepath when using sapper dev, build or export, and Sapper will handle routes accordingly. It will also make a basepath variable available via the manifests, and will replace %sapper.base% in app/template with a <base href='${basepath}'> tag.

Apps using basepath will need to make a couple of tweaks, which will be made clearer in a forthcoming sapper-template PR.

@Rich-Harris
Copy link
Member Author

Closing in favour of #200

@Rich-Harris Rich-Harris deleted the gh-180 branch March 17, 2018 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant