@holine/postcss-rpx-to-viewport
Version:
PostCSS plugin dfasd
32 lines (25 loc) • 531 B
JavaScript
/**
* @type {import('postcss').PluginCreator}
*/
module.exports = (opts = {}) => {
// Work with options here
return {
postcssPlugin: 'postcss-rpx-to-viewport',
/*
Root (root, postcss) {
// Transform CSS AST here
}
*/
Declaration (decl, postcss) {
console.log(opts, decl, postcss)
}
/*
Declaration: {
color: (decl, postcss) {
// The fastest way find Declaration node if you know property name
}
}
*/
}
}
module.exports.postcss = true