Releases: axa-ch/metalsmith-postcss
Releases · axa-ch/metalsmith-postcss
Configurable file extension
Introduce the pattern
option to customize matching of files to be processed
Fix plugin config bug
Fixed #21
Postcss 4 / Array config
v4.1.0 4.1.0
Make it ready for the Metalsmith CLI
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
@juliekoubova made this work with plugins like postcss-import
, that require to know the absolute paths to the source files.