Files
Frontend/25_01_07/mai/node_modules/postcss-merge-longhand/src/index.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

24 lines
474 B
JavaScript

'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;