postcss-custom-properties
postcss-custom-properties copied to clipboard
Feature request : Add browserslist support
I've made this, but having custom properties without fallback could be great when my browserslist support it.
var caniuse = require("caniuse-api");
var browserslist = require("browserslist");
var customPropertiesPreserve = caniuse.isSupported("css-variables", browserslist());
module.exports = {
plugins: {
'postcss-normalize':{},
'autoprefixer':{},
'postcss-custom-properties':{
'preserve': customPropertiesWithFallback
},
'postcss-custom-media':{},
'postcss-media-minmax':{}
}
};