How to use the autoprefixer.compile 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 Katochimoto / xblocks / bin / styl.js View on Github external
style.render(function(err, css) {
    if (err) {
        throw err;
    }

    if (!args.ie) {
        css = autoprefixer.compile(css);
    }

    fs_.writeFileSync(args.output, css);
    console.log('WRITE FILE: ', args.output);
});