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)
- Talwind 4 alpha firefox space-x issues HOT 1
- Configuration file `content` relative paths are not relative to the configuration file location HOT 2
- `contain-layout` does not seem to work v4 HOT 2
- Arbitrary variant nesting selector doesn't work with data attribute selector HOT 2
- [V4] @tailwindcss-vite: Cannot read properties of undefined (reading 'send') HOT 1
- Missing `exports` field in the package.json file HOT 2
- Tailwind HMR does not work with Next.js with symlinks
- Tailwind generates inappropriate class names for custom colors HOT 1
- Tailwindcss can't be able to capitalize UPERCASE default text HOT 2
- Tailwind Css Grid Image Sizing
- How add Tailwind in Vue js SFC playground
- Grid and divide utility not working HOT 1
- Tailwind CSS or CSS classes does not working properly while creating elements using vanilla js HOT 1
- Whatever
- [v4] Pseudo selector scale doesn't work on Firefox HOT 3
- Cannot read properties of null (reading '__isOptionsFunction') HOT 2
- [Prettier Plugin] support placeholder (generic class attribute) for tailwindAttributes
- [email protected] build time significantly exceeds previous versions for monorepo
- Tailwind Standalone Throwing Caniuse Browserlist Error When Running Without Tailwind CLI HOT 2
- PostCSS warning for custom utility used with before:/after: HOT 2
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.