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

feat(examples:tailwind): add postcss-preset-env #10160

Merged
merged 6 commits into from Jan 20, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/with-tailwindcss/README.md
Expand Up @@ -49,9 +49,8 @@ now

This setup is a basic starting point for using [Tailwind CSS](https://tailwindcss.com) with Next.js. This example also includes the following [PostCSS](https://github.com/postcss/postcss) plugins:

- [autoprefixer](https://github.com/postcss/autoprefixer) - Adds vendor prefixes to CSS rules in your stylesheet using values from [Can I Use](https://caniuse.com/)
- [postcss-preset-env](https://preset-env.cssdb.org/) - Adds stage 2+ features and autoprefixes
- [purgecss](https://github.com/FullHuman/purgecss) - Removes unused CSS
- [cssnano](https://cssnano.co/) - Minifies CSS
- [postcss-easy-import](https://github.com/TrySound/postcss-easy-import) - Allows importing one stylesheet into another
afzalsayed96 marked this conversation as resolved.
Show resolved Hide resolved

## Limitations
Expand Down
3 changes: 1 addition & 2 deletions examples/with-tailwindcss/package.json
Expand Up @@ -13,8 +13,7 @@
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^9.7.4",
"postcss-import": "^12.0.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/postcss.config.js
Expand Up @@ -13,6 +13,6 @@ module.exports = {
},
]
: undefined,
'autoprefixer',
'postcss-preset-env',
],
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/styles/button.css
@@ -1,3 +1,3 @@
.btn-blue {
@apply .bg-blue-500 .text-white .font-bold .py-2 .px-4 .rounded;
@apply bg-blue-500 text-white font-bold py-2 px-4 rounded;
}