Skip to content

Use url.resolve(...) instead of path.join(...) to support abs URLs #55

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

Merged
merged 1 commit into from
Mar 11, 2015
Merged

Use url.resolve(...) instead of path.join(...) to support abs URLs #55

merged 1 commit into from
Mar 11, 2015

Conversation

michaelmoussa
Copy link
Contributor

This PR adds support for using an absolute url for the --css-image-path, both in the form http://domain.com and //domain.com, which should resolve #48.

I've included a test for the new behavior and confirmed the existing tests still pass. Trying to use http://domain.com before would result in http:/domain.com, which wouldn't work as intended anyway, so there should not be any backwards compatibility issues here.

See http://stackoverflow.com/q/16301503/126531 for more information.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 96.91% when pulling 60a01dc on michaelmoussa:abs-url-cssPath into 147f2a2 on aslansky:master.

aslansky added a commit that referenced this pull request Mar 11, 2015
Use url.resolve(...) instead of path.join(...) to support abs URLs
@aslansky aslansky merged commit 4aa9f3e into aslansky:master Mar 11, 2015
@aslansky
Copy link
Owner

Sir, thank you very much ;)

@michaelmoussa
Copy link
Contributor Author

You're welcome! Glad to help. Can I trouble you to take a look at #56 as well and tag a release? Looking forward to adding this to our deployment process. :)

@michaelmoussa michaelmoussa deleted the abs-url-cssPath branch March 11, 2015 15:07
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.

Allow network-path reference "//domain.com" or "http://domain.com" for css-image-path option
3 participants