mizziness / craft3-webpack5-tailwind2-boilerplate

A real-world boilerplate for Craft CMS 3 projects that leverages Wepback 5, Tailwind 2, PostCSS 8, and has a hot-reload dev environment. Now with dynamic imports, asynchronous chunk loading, and legacy vs modern browser support!
MIT License
45 stars 11 forks source link

Yarn dev - Not building css file #6

Closed brianbier closed 3 years ago

brianbier commented 3 years ago

Hi I was trying to test out tailwind css but the javascript file is not buildings a css file. When I enter yarn dev, it only builds the app.js and the chunk-vendors.js file.

yarn build - actually creates a css file but it strips out all the tailwind css.

Do you have any suggestions on how to fix this problem?

brianbier commented 3 years ago
Screen Shot 2021-05-29 at 10 01 24 PM
mizziness commented 3 years ago

@brianbier The default tailwind.config.js file includes purging unused styles by default - if you disable that feature and build again, you'll see output :)