postcss
plugin helps to migrate to latest postcss
version according to migration guide.
npm i @putout/plugin-postcss -D
{
"rules": {
"postcss/replace-loader-with-creator": "on"
}
}
module.exports = postcss.plugin('postcss-dark-theme-class', (opts = {}) => {
checkOpts(opts);
return (root, result) => {
root.walkAtRules((atrule) => {});
};
});
module.exports = (opts = {}) => {
checkOpts(opts);
return {
postcssPlugin: 'postcss-dark-theme-class',
Once(root) {
root.walkAtRules((atrule) => {});
},
};
};
module.exports.postcss = true;
MIT