Open rs459 opened 5 years ago
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':{} } };
I've made this, but having custom properties without fallback could be great when my browserslist support it.