Skip to content

Commit 0f93d76

Browse files
authored
Merge pull request #23 from nanaya/unsupported-message
Show more useful link for unsupported platform error
2 parents c4a21ef + 911dd4b commit 0f93d76

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ gem install tailwindcss-ruby
3333

3434
### Using a local installation of `tailwindcss`
3535

36-
If you are not able to use the vendored standalone executables (for example, if you're on an unsupported platform), you can use a local installation of the `tailwindcss` executable by setting an environment variable named `TAILWINDCSS_INSTALL_DIR` to the directory path containing the executable.
36+
<!-- note that this section's title is deeplinked from an error message, do not change -->
37+
38+
If you are not able to use the vendored standalone executables (for example, if you're on an unsupported platform), you can use a [local installation](https://tailwindcss.com/docs/installation) of the `tailwindcss` executable by setting an environment variable named `TAILWINDCSS_INSTALL_DIR` to the directory path containing the executable.
3739

3840
For example, if you've installed `tailwindcss` so that the executable is found at `/path/to/node_modules/bin/tailwindcss`, then you should set your environment variable like so:
3941

lib/tailwindcss/ruby.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def executable(exe_path: DEFAULT_DIR)
4141
if Tailwindcss::Ruby::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) }
4242
raise UnsupportedPlatformException, <<~MESSAGE
4343
#{GEM_NAME} does not support the #{platform} platform
44-
Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation
44+
See https://github.com/flavorjones/tailwindcss-ruby#using-a-local-installation-of-tailwindcss
45+
for more details.
4546
MESSAGE
4647
end
4748

0 commit comments

Comments
 (0)