A pure regexp-replace polyfill for W3C CSS Custom Media queries. This is basically CSS variables, but for media queries.
This:
@custom-media --full-page (max-width: 980px);
@media (--full-page) {
}
Becomes:
@custom-media --full-page (max-width: 980px);
@media (max-width: 980px) {
}
var customMedia = require('custom-media')
css = customMedia(css)