Created
August 12, 2018 10:29
-
-
Save hail2u/9bfc6a6e16d97860d8de9f3d9ff3c232 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const postcss = require("postcss"); | |
module.exports = postcss.plugin("wrap-with-supports", () => css => { | |
const supports = postcss.parse("@supports(top:0){}"); | |
css.each(n => { | |
supports.first.append(n); | |
}); | |
css.append(supports); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment