Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Make it ready for the Metalsmith CLI

Compare
Choose a tag to compare
@davidknezic davidknezic released this 31 Mar 21:02
· 52 commits to master since this release

Thanks to @timohofmeijer, this plugins now supports the Metalsmith CLI!

Watch out, this change breaks the API.

Instead of this: ❌

var pseudoelements = require('postcss-pseudoelements');
var nested = require('postcss-nested');

metalsmith.use(postcss([
  pseudoelements(),
  nested()
]));

You now do this: ✔️

metalsmith.use(postcss({
  plugins: {
    'postcss-pseudoelements': {},
    'postcss-nested': {}
  }
}));

Your postcss plugins will automatically be imported by metalsmith-postcss.