postcss-px2vw-pv
Version:
PostCSS plugin which transfer px to vw when use pv unit directly
13 lines (11 loc) • 364 B
JavaScript
const defaultConf = {
width: 750,
decimal: 4,
rem: false,
remMigration: false
}
module.exports.defaultConf = defaultConf;
module.exports.getComment = (opts = {}) => {
opts = Object.assign({}, defaultConf, opts);
return `plugin: postcss-px2vw-pv; width: ${opts.width}; decimal: ${opts.decimal}; contact@https://github.com/pomelott/postcss-px2vw-pv`;
}