Comments (2)
Hey! What's the situation that's causing you to run Tailwind against minified JS instead of against the original source files?
from tailwindcss.
Hey! What's the situation that's causing you to run Tailwind against minified JS instead of against the original source files?
Right, should've clarified! In our use-case we have a Vue components library which is tree-shaken and then consumed by 10+ applications which make up individual fragments of a website (usually called micro frontends). We then generate the css files for each application as it's built, by pointing the content
prop in the tailwind config to the built js file of the application.
So one solution would definitely be to go against the source files, generate a components.css
and then include that css with each application. However, this would cause a lot of css duplication on every single page.
I understand that this is a niche issue, and probably not a way you intended for it to be used, so I don't expect you to change the code to suite this need!
Can you see any other way to solve this while avoiding as much code duplication as possible? Or maybe come across someone solving using tailwind in a similar structure?
Thank you!
from tailwindcss.
Related Issues (20)
- Tailwind does not delete unused css
- Cannot transition between outer and inner shadows
- Border is being overwritten despite appearing after the original border class
- tailwind-cli casually emits to `stderr` HOT 2
- [v4] Publish @tailwindcss/postcss as ESM HOT 2
- [v4] Sourcemaps not enabled in postcss plugin HOT 2
- bg-opacity doesn't work on dark mode
- ```content.transform``` doesn't work in next.js HOT 1
- [Prettier Plugin] Handle two more plugins HOT 3
- not working in docker HOT 3
- other postcss plugins do not work with tailwindcss HOT 1
- `<alpha-value>` is not recognized on reuse HOT 2
- Vulnerable Dependency - micromatch HOT 3
- v4: tailwind.default is not a function when running with Angular 17 and esbuild
- Classes generation error using symlink HOT 1
- [v3] Double quotes break arbitrary variants HOT 2
- `dark:` does not work with `@apply` in v3.4.3
- Create plugin: addBase does not work inside of matchComponents
- Col-end does not support negative values HOT 2
- For example: min-[1620px] is not workin, tailwind dont see this, but media xl, 2xl, md he is see)) (sorry for my english)
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.