question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Roadmap Q1/Q2 2021

See original GitHub issue

Hi all,

First of all, allow me and the contributors to thank you for your supports for ngneat/tailwind.

Second of all, join me to congratulate @beeman and @vltansky as they are new Maintainers of ngneat/tailwind, alongside me. This will greatly help us keeping track of this repo as well as updates in the ecosystem 🎉

This issue will act as our public Roadmap for the first half of 2021. Though ngneat/tailwind is a very small utility package, we want to be as transparent as possible as to what to expect from it.

As most of you have already know, Angular (v11.2+) has built-in support for TailwindCSS. This is a great initiative from the AngularCLI team. However, their implementation is quite rudimentary, if not half-baked, as Angular’s support does not cover Purging use-case and it seems like they are very opinionated about what they want to support as far as TailwindCSS goes. You can check out related issues here and here

Note on Purging: TailwindCSS is currently working on JIT compilation which will negate the need of purging. We will have more updates when that is finalized and stable from the TailwindCSS side.

That said, we are going to continue maintaining ngneat/tailwind. Here is what you can expect in the future release(s):

  • ngneat/tailwind will check if your project is running v11.2 of Angular.
    • If yes, then ngneat/tailwind will execute a slightly newer flow
    • If no, then ngneat/tailwind will execute the current flow, which is working for most Angular projects that are under 11.2

New flow

  • ngneat/tailwind will ride on top of AngularCLI support for Tailwind. This means that we will not leverage any custom webpack anymore.
  • ngneat/tailwind will still initialize a tailwind.config.js for you without you having to execute npx tailwindcss init
  • ngneat/tailwind will also setup Purging out of the box with a custom flag.
  • ngneat/tailwind will export a custom Tailwind plugin to handle ViewEncapsulation in Components’ styles. Right now, this is handled by a custom PostCSS plugin but since we won’t be using Custom Webpack, we cannot utilize a PostCSS plugin.
  • ngneat/tailwind will export the Custom Tailwind Plugin and the Purging flag as Public API so the consumers can reference if need be.

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
sonntag-philippcommented, Jan 17, 2022

Install TailwindCSS with Angular >= v11.2 and TailwindCSS >= v3

This project is no longer necessary for basic functionality in newer projects as I can see for now.

You can just add the tailwindcss package to your project and configure it using the tailwind.config.js. No additional packages are needed. If you want to get rid of the missing peer dependency messages, just install them even though they’re not necessary as they’re already included in Angular.

Official Guide is now available

tailwind.config.js

module.exports = {
  content: [
    './src/app/**/*.{html,ts}',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
  important: true
};

Note the important at the bottom. I’ve used it there to forcefully overwrite rules by @angular/material. When you don’t use other libraries this may not be necessary.

Add this to your project styles.css

@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

Et voilá, that should be it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RetroArch 2021 Hardware Roadmap Q1/Q2 - Libretro
RetroArch 2021 Hardware Roadmap Q1/Q2 ... 2020 has been a year of accelerated growth for RetroArch, but 2021 looks set to surpass it...
Read more >
Gravity Roadmap Update — 2021 Q1/Q2 - Medium
Gravity Roadmap Update — 2021 Q1/Q2. Gravity Protocol is an open-source initiative with a transparent approach to development.
Read more >
libretro on Twitter: "Our hardware roadmap for Q1/Q2 2021 is ...
Our hardware roadmap for Q1/Q2 2021 is now up! Xbox Series S/X, Mac M1/Apple Silicon, and MiSTer/DE10-Nano all discussed!
Read more >
1214 Quarterly Roadmap Q1 Q2 Q3 Q4 PowerPoint ...
This quarterly PPT infographic template is a very useful tool for communicating amongst team members and executives internally and with customers externally.
Read more >
RetroArch 2021 Hardware Roadmap Q1/Q2 - Reddit
Interesting I guess this is a good device for game streaming as Parsec or Moonlight were latency is a must.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found