Skip to content

Instantly share code, notes, and snippets.

@Ciantic
Created June 20, 2020 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ciantic/8a4ad213f1d0b947db7ff578720f5826 to your computer and use it in GitHub Desktop.
Save Ciantic/8a4ad213f1d0b947db7ff578720f5826 to your computer and use it in GitHub Desktop.
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