Files
Projektarbeit-MYP/backend/node_modules/postcss-merge-longhand/src/index.js

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;