forsartis / vue-cli-plugin-tailwind

vue-cli plugin for Tailwind CSS
MIT License
211 stars 10 forks source link

Add support for Tailwind 2.0 #24

Closed Uninen closed 3 years ago

Uninen commented 3 years ago

Tailwind 2 has been released. Would be nice to be able to use it with this plugin as well 👍

bodograumann commented 3 years ago

Are there any hurdles wrt switching to postcss-8? E.g. @vue/cli-service still uses css-loader version 3 with postcss 7

Uninen commented 3 years ago

PostCSS 8 seems a bit impossible at the moment in Vue land where mostly everything uses 7.x. You can instead use the compatibility build which has identical features and still uses PostCSS 7: tailwindcss@compat

forsartis commented 3 years ago

New version released v2.0.1, this will install the compat version of Tailwind CSS. I also switched to Tailwind's internal PurgeCSS setup.

Uninen commented 3 years ago

Yay, thanks for the very fast response time and a great plugin 👍

tylercollier commented 3 years ago

Thanks! I was able to upgrade by removing the line 'vue-cli-plugin-tailwind/purgecss': {}, from my postcss.config.js's plugins object (which I figured out by reading your updated README).

Just curious: would it be better to have autoprefixer and postcss as peer dependencies, the same way that Tailwind 2 does?