Comments (2)
I have my config in a custom component in my node_modules
how can I tell this extension to look in a particular destination for the config so the @apply
picks up on the styles I have?
Path would be node_modules/@component/src/tailwind.config.js
from tailwindcss-intellisense.
We try to be as responsible as possible with regards to extension activation, which is why we use that specific activation event. The problem is that by default VS Code excludes node_modules
folders from searches, which makes sense, but means that a tailwind.config.js
in there won't trigger the activation event. In the future we may change the activation event, perhaps to onStartupFinished
, but for now this is a limitation.
For now if you want to use the extension with the default config you could create an "empty" config file:
// tailwind.config.js
module.exports = {}
And if you want to use a config that exists under node_modules
you could create your own config file and re-export it:
// tailwind.config.js
module.exports = require('@component/src/tailwind.config.js')
from tailwindcss-intellisense.
Related Issues (20)
- Extension completely loses functionality. HOT 2
- Required `tailwind.config.js` could become a problem with tailwindcss v4 HOT 4
- IntelliSense does not show class suggestions with selectors using square brackets
- Custom classRegex with class suggestions but no hover preview HOT 3
- tailwindCSS.experimental.configFile using wrong base path, when set as relative path in project opened as vscode code-workspace HOT 2
- auto sugestion not working HOT 3
- Don't use `InitializeParams.rootUri` if `workspaceFolders` is specified HOT 15
- Tailwindcss intellisense (auto-fill, auto-complete) not showing in vscode on macos with m1 suddenly. HOT 6
- Auto-complete is not working thats tailwind intellisense is not working HOT 2
- matchUtilities breaks intellisense HOT 2
- 'xxx' applies the same CSS properties as 'xxx' in Vue 2 style binding HOT 4
- cssConflict warning when using flex and hidden classes HOT 3
- VSCode color picker breaks in JS/TS files
- not working HOT 1
- Perf issue after latest VS Code update HOT 13
- not giving suggestions HOT 1
- BUG: Conflict Diagnostics does not capture Arbitrary values HOT 3
- Intellisense shows the wrong suggestions HOT 1
- Color decorators are not working for custom colors with css variables HOT 2
- How do I enable tracing between tailwindcss and VS Code? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-intellisense.