Urara-Blog/node_modules/.pnpm-store/v3/files/72/d4b896a9358a8ad103e05d70b4c8778b45781c4a80a7966065a1c3aebb0b88aad3924d13d341e2c3a2b2fcef4bf7c47638dbc78d9654ec762ab38aea6ad916
2022-08-14 01:14:53 +08:00

23 lines
474 B
Text

'use strict';
const processors = require('./lib/decl');
/**
* @type {import('postcss').PluginCreator<void>}
* @return {import('postcss').Plugin}
*/
function pluginCreator() {
return {
postcssPlugin: 'postcss-merge-longhand',
OnceExit(css) {
css.walkRules((rule) => {
processors.forEach((p) => {
p.explode(rule);
p.merge(rule);
});
});
},
};
}
pluginCreator.postcss = true;
module.exports = pluginCreator;