npm postcss 8.2.0
8.2 “Prince Orobas”

latest releases: 8.4.47, 8.4.46, 8.4.45...
3 years ago

Prince Orobas seal

PostCSS 8.2 added a new API to serialize and deserialize CSS AST to JSON.

import { parse, fromJSON } from 'postcss'

let root = parse('a{}', { from: 'input.css' })
let json = root.toJSON()
// save to file, send by network, etc
let root2 = fromJSON(json)

Thanks to @mischnic for his work.

Don't miss a new postcss release

NewReleases is sending notifications on new releases.