How to use the autoprefixer.postcss function in autoprefixer

To help you get started, we’ve selected a few autoprefixer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github morishitter / atcss / index.js View on Github external
Atcss.prototype.process = function () {
    var output = postcss()
        .use(imprt())
        .use(constant(this.css))
        .use(constantBlock(this.css))
        .use(include({css: this.css, removeBase: false}))
        .use(extend(this.css))
        .use(inherit(this.css))
        .use(removeBase())
        .use(important(this.css))
        .use(autoprefixer.postcss);

    if (this.compress) {
        output = output.use(csswring.postcss)
    }

    return output.process(this.css).css
}