Blog post: show where postcss-mixins goes in the config - #58
Merged
Conversation
The PostCSS setup post told readers to install postcss-mixins if they want mixins, but neither config block ever showed the plugin in the plugins array. It also claimed this site's config is "exactly the file above", when the repo's own postcss.config.cjs includes postcss-mixins. Add a commented opt-in line to both config blocks, state the plugin order rule (import, mixins, preset-env, matching build-css.mjs), and correct the sentence about the site's own config. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for mcssdev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
The PostCSS setup post (postcss-setup-for-mcss.mdx) told readers to
npm install -D postcss-mixinsif they want mixins, but neither of its twopostcss.config.cjscode blocks ever showed the plugin in the plugins array. Readers who opted in were left to guess where it goes.// require("postcss-mixins"),line at the top of the plugins array, with a note that it must run before preset-env.postcss-importand preset-env, and the "Order is not a style preference" paragraph now states the full rule: import, then mixins, then preset-env. This matches the repo's ownpostcss.config.cjsandsrc/tools/build-css.mjs.Why
The docs page
start.mdxsays mixins "require a PostCSS plugin to work" and links to this post, so the post should actually show the wiring. Without it, the post's "exactly the file above" sentence also contradicted the repo's real config.Notes for review
Prose-only change to one blog post; no code or config touched. Plugin order was verified against
src/tools/build-css.mjs(postcssImportthenpostcssMixinsthenpostcssPresetEnv).🤖 Generated with Claude Code