-
Notifications
You must be signed in to change notification settings - Fork 218
[IntelliSense] Make location of tailwindcss executable configurable #455
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
Comments
I took a quick look into this for a project that uses tailwindcss-rails. I think this won't be as simple as just providing a configuration option to point to a The extension could accept a tailwind source configuration option, but in the case of tailwindcss-rails even that wouldn't help because the Rails integration wraps just the CLI, not the tailwind source. To get the ideal experience for non-node environments like Rails, I think this extension would need to ship with the components it needs from tailwind's source (or the CLI could ship a language server). |
Hey @ellismarkf. As @bpo mentioned, it's not as simple pointing the extension at the standalone CLI file, because that file is not the same as the Having said that, we just released |
@bradlc we're working on a rails-tailwind project and attempting to enable intellisense. Given we're using this gem and dont have any JS dependencies locally available, this extension defaults to using the bundled const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
...
plugins: [
plugin(({addUtilities}) => {
...
}),
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/typography'),
require('@tailwindcss/container-queries'),
], The plugin reasonably struggles to find these external packages with Thanks in advance! |
Discussed in tailwindlabs/tailwindcss#6727
Originally posted by ellismarkf December 24, 2021
Rather than assuming a project has
tailwindcss
available innode_modules
, users should be able to configure the extension to point to a file path wheretailwindcss
is installed.Especially now that the standalone
tailwindcss
package has been released, it would make usingtailwindcss
alongside non-JS frameworks (ie Rails, Phoenix) a lot easier for those projects that would otherwise not need apackage.json
file at all.The text was updated successfully, but these errors were encountered: