Use postcss from deno
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
import autoprefixer from "https://jspm.dev/autoprefixer"; | |
import postcss from "https://jspm.dev/postcss"; | |
postcss().use(autoprefixer).process(".something { appearance: none; }", { | |
from: undefined | |
}).then(f => { | |
console.log(f.css); | |
}) |
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
#!/bin/bash | |
deno run .\postcsstest.js | |
# Should output this: | |
# .something { -webkit-appearance: none; -moz-appearance: none; appearance: none; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment