Giter VIP home page Giter VIP logo

Comments (2)

mbulfair avatar mbulfair commented on August 28, 2024

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.

bradlc avatar bradlc commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.