$ gnpm install postcss-safe-parser
A fault-tolerant CSS parser for PostCSS, which will find & fix syntax errors, capable of parsing any input. It is useful for:
const safe = require('postcss-safe-parser')
const badCss = 'a {'
postcss(plugins).process(badCss, { parser: safe }).then(result => {
result.css //= 'a {}'
})
Copyright 2013 - present © cnpmjs.org | Home |