Skip to content

Blog post: show where postcss-mixins goes in the config - #58

Merged
minimaldesign merged 1 commit into
mainfrom
claude/serene-easley-949645
Jul 31, 2026
Merged

Blog post: show where postcss-mixins goes in the config#58
minimaldesign merged 1 commit into
mainfrom
claude/serene-easley-949645

Conversation

@minimaldesign

Copy link
Copy Markdown
Owner

What changed

The PostCSS setup post (postcss-setup-for-mcss.mdx) told readers to npm install -D postcss-mixins if they want mixins, but neither of its two postcss.config.cjs code blocks ever showed the plugin in the plugins array. Readers who opted in were left to guess where it goes.

  • The main (bundler) config block now has a commented // require("postcss-mixins"), line at the top of the plugins array, with a note that it must run before preset-env.
  • The no-bundler config block has the same commented line between postcss-import and 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 own postcss.config.cjs and src/tools/build-css.mjs.
  • The claim that this site's PostCSS config "is exactly the file above, nothing more" was inaccurate, since the site's config includes postcss-mixins. It now says the config is the file above with the mixins line uncommented.

Why

The docs page start.mdx says 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 (postcssImport then postcssMixins then postcssPresetEnv).

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for mcssdev ready!

Name Link
🔨 Latest commit 976c956
🔍 Latest deploy log https://app.netlify.com/projects/mcssdev/deploys/6a6cd0def572ad0008ae4c07
😎 Deploy Preview https://deploy-preview-58--mcssdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98
Accessibility: 98
Best Practices: 100
SEO: 99
PWA: 70
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@minimaldesign
minimaldesign merged commit a58055a into main Jul 31, 2026
5 checks passed
@minimaldesign
minimaldesign deleted the claude/serene-easley-949645 branch July 31, 2026 16:46
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

Successfully merging this pull request may close these issues.

1 participant