safe-parse.js 242 B

123456789101112
  1. let { Input } = require('postcss')
  2. let SafeParser = require('./safe-parser')
  3. module.exports = function safeParse(css, opts) {
  4. let input = new Input(css, opts)
  5. let parser = new SafeParser(input)
  6. parser.parse()
  7. return parser.root
  8. }