Skip to content

Releases: axa-ch/metalsmith-postcss

Configurable file extension

17 Jul 06:12
Compare
Choose a tag to compare

Introduce the pattern option to customize matching of files to be processed

Fix plugin config bug

24 Sep 09:36
Compare
Choose a tag to compare

Postcss 4 / Array config

24 Sep 09:35
Compare
Choose a tag to compare

Make it ready for the Metalsmith CLI

31 Mar 21:02
Compare
Choose a tag to compare

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.

Make it work with postcss-import

31 Mar 20:30
Compare
Choose a tag to compare

@juliekoubova made this work with plugins like postcss-import, that require to know the absolute paths to the source files.