Comments (6)
I think that Adam means he just removed @import "tailwindcss/base";
, not all imports. If you leave the others in, you will get the effect as seen in the video.
Quick example: https://youtu.be/vBhyv-9va5s
Ps. If you wan't it to pick up on Tailwind classes inside JS-files to (in your gif you are changing app.js
), you would have to add it to the purge list in tailwind.config.js
. But you might have already known that :-)
from tailpress.
Yes, that's true for the JS files but in the GIF above I'm editing a PHP file too and those classes aren't being compiled for some reason as in your video. Not sure why.
from tailpress.
Just to be sure, do you have these two not commented out?:
@import "tailwindcss/components";
@import "tailwindcss/utilities";
from tailpress.
Yes, I did comment those out. I just added them back in and it works now when modifying PHP and JS. I didn't realise this was a requirement though.
Going back to Adam's video, at the time I linked to there are no styles at all in his build.css until he starts adding in classes to the HTML file. Whereas TailPress adds in all the base
, components
, and utility
classes by default which you can then add to when editing PHP, and JS.
If this is the way TailwindCSS JIT works how do you think Adam has an empty build file until he starts adding classes to HTML files?
from tailpress.
That's because the templates files are watched and all utility classes that occur in them are added to the app.css file.
If you, as a test, only watch for one file (say index.html) you'll see the effect as seen in the video of Adam. Quick example: https://www.youtube.com/watch?v=IXoWlSp2Ja0
from tailpress.
Got it. Thanks for clarifying.
from tailpress.
Related Issues (20)
- Override alignwide class HOT 1
- Import modules via npm import
- 'npm run watch' not working HOT 5
- Why is lodash required? HOT 1
- Font sizes HOT 1
- please add same files like archive
- `npm run watch` heap crash HOT 10
- how to add dasy ui component HOT 2
- Issue with Watch and JS compiling HOT 3
- how to use global css
- Add colors outside of pallette
- Tailwind Dark and Light Theme implementation error
- Why is `resolve-url-loader` needed in Tailpress?
- npm run watch-sync requires to force browser cache to see changes HOT 6
- Tailwind CSS IntelliSense, not working with the theme
- Errors on install WordPress not installed but theme installation pass good HOT 2
- sub menu fail with tailwind 3.3.1
- .wp-caption-text font size=0
- Avoiding using deprecated global Mix HOT 1
- Bowser-sync missing or removed? 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 tailpress.