Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with AutoPrefixer and PurgeCSS Using Tailwind 1.1.2 #5

Open
tmswr opened this issue Sep 26, 2019 · 1 comment
Open

Issues with AutoPrefixer and PurgeCSS Using Tailwind 1.1.2 #5

tmswr opened this issue Sep 26, 2019 · 1 comment

Comments

@tmswr
Copy link

tmswr commented Sep 26, 2019

Hello Jack!

I've run into an issue with trying to use a more up to date version of Tailwind. Whenever I update tailwind.config.js and change the file names from tailwind-config.js in webpack.mix.js to tailwind.config.js, the correct CSS is generated, but there is no Auto Prefixing and Purge CSS seems not touch the css. I've went through the Tailwind docs, is there any more customization needed with the way it's set up?

@jack-pallot
Copy link
Owner

There's a slight difference in how Autoprefixer finds your recommended browser list now, it uses a file called .browserlistrc.

I've pushed up a branch called 1.0-dev, which is still a work in progress, but uses Laravel Mix 5.0, Babel 7, Webpack 4, and Tailwind 1.1.2. You might as well upgrade all of these, since the Tailwind upgrade is by far the most comprehensive. I have managed to get PurgeCSS and Autoprefixer working with Tailwind 1.0 in this environment.

You should be able up upgrade by adding / changing the following (assuming Tailwind has already been upgraded to 1.1.2 successfully):

package.json (delete node_modules & re-install)
.browserslistrc
webpack.mix.js

I would also recommend branching this first in case you need to merge or rollback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants