-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support for Tailwindcss #152
Comments
You can already use tailwind |
You can use tailwind css while developing chrome extension.
Configure Webpack to process CSS files using PostCSS and Tailwind: Create
Create a styles.css file in your project's src directory and import Tailwind's base styles:
Import the styles.css file in your index.js or App.js file: Modify your webpack config file to add a new rule for processing CSS files through PostCSS by adding this block:
Here's what your webpack config file should look like:
Hope this would be helpful. |
Any way to debug this or learn more? After following the steps I don't get Tailwind to work but also don't get any error (logging errors in webpack in the build.js file). |
Tried solving it using Tailwind CLI and found out that Tailwind just doesn't work when your React Injection Node is attached to a shadowRoot. Have yet to try the original solution after removing the shadowRoot but now at least with CLI it works! |
I've done it in this basic fork: https://github.com/selego/chrome-extension-boilerplate-react-tailwind |
kindly consider support for tailwind css for this wonderful react-extension, Thanks.
The text was updated successfully, but these errors were encountered: