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
How to integrate PostCSS #63
Comments
I definitely want this to be super simple out of the box! In this case I think it might be because Microsite uses Microsite automatically uses the official Snowpack plugin if it picks up on a PostCSS configuration file (via |
I can confirm that PostCSS works completely fine if someone renames the default There's one thing I haven't found a solution yet. Tailwind CSS provides a way to remove unused CSS classes from the final built CSS using This is how my module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}; And here is what's in the module.exports = {
// This should instruct Tailwind to purge CSS based on these files
purge: ['./src/**/*.tsx'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}; Will take another look later, my guess is that |
I can confirm, using |
I'll definitely update the docs to mention this! Certainly on the bleeding edge of ESM in Node here. As for Tailwind and PurgeCSS, I'll see if I can get it working and add an example to the project. I have a suspicion it's a hidden side-effect of the multi-stage build that happens in the background. |
Added a note about PostCSS using |
I added a working Tailwind example in |
Hello, I'm trying to enable PostCSS but the configuration file (
postcss.config.js
) inside the project root is not recognized.I'm also trying to integrate PostCSS by using the official snowpack plugin, but it doesn't seem to work. I've created both
snowpack.config.json
andpostcss.config.js
.EDIT: It seems that only
.postcssrc
file is recognised.The text was updated successfully, but these errors were encountered: