[Announcement] Tailwind CSS v1.4 is out, with built-in PurgeCSS support! #1656
Replies: 11 comments 17 replies
-
Good job sir |
Beta Was this translation helpful? Give feedback.
-
I think the Built-in PurgeCSS feature is a complete game-changer, no need to fiddle with webpack/gulp config, or deal with a third party implementation's purging decisions (I'm looking at you @nuxtjs/tailwindcss) anymore. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you for the built in purge, it is a crucial step and very handy. Is there a way to exclude a directory from I am using jekyll with postcss, and it would be good to exclude |
Beta Was this translation helpful? Give feedback.
-
Are you open to extending the default purge regex to support other templating languages? For my HAML templates I found that I needed to add .text-gray-500= content This change worked for me (I overrode both just in case): - const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []
- const innerMatches = content.match(/[^<>"'`\s.()]*[^<>"'`\s.():]/g) || []
+ const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:=]/g) || []
+ const innerMatches = content.match(/[^<>"'`\s.()]*[^<>"'`\s.():=]/g) || [] |
Beta Was this translation helpful? Give feedback.
-
FYI, the |
Beta Was this translation helpful? Give feedback.
-
The integration with PurgeCSS was a great decision! |
Beta Was this translation helpful? Give feedback.
-
also very excited about the integrated purgeCSS. can't wait to try that out. thanks! |
Beta Was this translation helpful? Give feedback.
-
If using PostCSS, upgrading TailwindCSS means I need to move all of the PurgeCSS plugin functions over to the new 'purge' option inside of Tailwind plugin? I am unclear on what to move where. :/ |
Beta Was this translation helpful? Give feedback.
-
@dixonge Can you share your current PostCSS config? Happy to tell you what to put where. |
Beta Was this translation helpful? Give feedback.
-
This is awesome! The Question: My site is built with VuePress, is there any additional setup/configuration I need to do to get it to work? Or would everything just magically work 😄 |
Beta Was this translation helpful? Give feedback.
-
Tailwind CSS v1.4.0 is here! 🥳 Another new minor version so soon? Merry Coronavirus 🎄😷🎄
New Features
New color opacity utilities (#1627)
Tailwind v1.4 adds a new set of utilities for controlling just the alpha channel of colors:
bg-opacity-{value}
text-opacity-{value}
border-opacity-{value}
divide-opacity-{value}
placeholder-opacity-{value}
These utilities compose with the existing color utilities like this:
All of these new utilities inherit their values from the
opacity
config by default but can be configured independently under the following theme keys:backgroundOpacity
textOpacity
borderOpacity
placeholderOpacity
divideOpacity
Learn more in the pull request.
Built-in PurgeCSS (#1639)
Tailwind v1.4 adds a new
purge
option to the config for removing unused CSS without the need for configuring another tool:Learn more in the pull request and the updated "Controlling File Size" documentation.
IE 11 target mode (#1635)
This feature is experimental and may change outside of normal semantic versioning policies.
Recently we've been adding a lot of new features to Tailwind that aren't IE 11 compatible, and if you need to support IE 11 in your projects you have to be careful not to rely on these features by mistake.
To make this easier, we've added a new
target
option to the config that lets you opt-in to a newie11
mode that disables any features that are not compatible with IE 11:Learn more in the pull request.
Beta Was this translation helpful? Give feedback.
All reactions