UNPKG

autoprefixer

Version:

Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website

15 lines (12 loc) 206 B
module.exports = { prefix(prop) { let match = prop.match(/^(-\w+-)/) if (match) { return match[0] } return '' }, unprefixed(prop) { return prop.replace(/^-\w+-/, '') } }