Replies: 1 comment 1 reply
-
Basically, you can do this by making some small changes in your module.exports = {
content: [
"./path/to/component/MyComponent.jsx", // <-- If you only need it for a single component
"./path/to/folder/*.{js,jsx,tsx}", // <-- If you need it for all components from the specific folder.
],
theme: {
extend: {},
},
plugins: [],
} Then, after that, just run this command: npx tailwindcss -i ./pathToYourGlobalCSS/global.css -o ./pathForOuputCSS/output.css Now you can play around with the generated Important
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody! I'm building a web application that uses a library that uses tailwind classes for its components. Since this scenario is limited in the application, is there a way to generate a local css file given a component that uses tailwind classes so I can just import that instead of importing the entire library?
Beta Was this translation helpful? Give feedback.
All reactions