Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use postcss from deno
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);
})
#!/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