phoenixframework / tailwind

An installer for tailwind
MIT License
467 stars 61 forks source link

Use proxy authentication #82

Closed marcotaubmann closed 1 year ago

marcotaubmann commented 1 year ago

Fetching the tailwind executable during install through a http proxy that requires authentication didn't work.

This PR extends the installation by picking up and applying HTTP Basic Authentication credentials from the proxy environment variables HTTPS_PROXY, https_proxy, HTTP_PROXY or http_proxy, depending on the scheme of the fetch URL.

eg. export https_proxy=http://username:password@yourproxy.example.com

See https://github.com/phoenixframework/esbuild/issues/54 and https://github.com/phoenixframework/esbuild/pull/57 for similar discussions.

marcotaubmann commented 1 year ago

@josevalim the test 'install on existing app.css and app.js' fails, but it failed before, and maybe the expected_css should include the @import "./phoenix.css"; line? Would that be a candidate for another issue or merge request?

josevalim commented 1 year ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: