Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toLeopard: Support relative "packaged" leopard library paths #91

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

towerofnix
Copy link
Member

For standalone sharing of projects, it's convenient to be able to package Leopard's library files right in the same folder as generated Leopard project source. This enables that use case by respecting leopardJSURL and leopardCSSURL values which are neither external (e.g. https://unpkg.com/...") nor absolute/root-relative (e.g. /leopard.min.css). If such a relative path is provided, e.g. leopard.min.css or lib/leopard.min.js, toLeopard will automatically supply the appropriate ./ or ../ prefix when importing the path in generated source.

Manually tested with custom local paths leopard.min.js and foo%20bar%20baz/leopard.min.js and snapshot-tested with the default unpkg values.

This is a standalone change which doesn't support any other PRs.

@towerofnix towerofnix merged commit faec008 into leopard-js:master Mar 7, 2023
@towerofnix towerofnix deleted the packaged-leopard-lib branch March 7, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants