Bundling CSS

๐Ÿงโ€โ™‚๏ธ Did I getcha!? ๐Ÿ˜‚๐Ÿคฃ
๐Ÿ‘จโ€๐Ÿ’ผ Great work, now we can easily add bundled CSS for our apps. This applies not only to CSS from component libraries that we import, but also to our own CSS components. Additionally, Remix has built-in support for CSS Modules and Vanilla Extract the CSS of which will also appear in the bundle. So, included in the CSS bundle will be:
๐Ÿงโ€โ™‚๏ธ I'm going to make a couple changes to make the homepage look nicer. Feel free to check the diff if you'd like!
๐Ÿฆบ When you use Array.filter(Boolean) in your own code, you might notice a different behavior, from what you've just seen in the solution. Typescript is still yelling at you ๐Ÿ˜ฎ. That's because Typescript doesnโ€™t play well with Array.filter(Boolean). To tackle this problem we use Matt Pocock's handy library ts-reset.
๐Ÿฆ‰ If you're curious about why we don't just use the bundle solution for all our CSS files (like tailwind and the fonts), watch this tip from Kent:

Access Denied

You must login or register for the workshop to view the diff.

Check out this video to see how the diff tab works.