Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function compile(css) {
css = whitespace(css);
return rework(css)
.vendors(vendors)
.use(rework.colors())
.use(rework.references())
.use(rework.keyframes())
.use(rework.ease())
.use(rework.prefixValue('transform'))
.use(rework.prefix(props))
.use(rework.mixin(mixins))
.use(rework.at2x())
.toString();
}
_.each(this.options.mixins, function (mixin) {
rwk.use(rework.mixin(require(mixin)));
});
Style.prototype.toString = function(){
this.use(rework.mixin(mixins));
this.use(rework.keyframes());
this.use(rework.ease());
this.use(rework.prefixValue('linear-gradient'));
this.use(rework.prefixValue('radial-gradient'));
this.use(rework.prefixValue('transform'));
this.use(rework.prefix(props));
this.use(rework.colors());
this.use(rework.references());
this.use(rework.at2x());
this.use(rework.extend());
return this.rework.toString({ compress: this.compress });
};
Style.prototype.toString = function(){
this.use(rework.mixin(mixins));
this.use(rework.keyframes());
this.use(rework.ease());
this.use(rework.prefixValue('linear-gradient'));
this.use(rework.prefixValue('radial-gradient'));
this.use(rework.prefixValue('transform'));
this.use(rework.prefix(props));
this.use(rework.colors());
this.use(rework.references());
this.use(rework.at2x());
this.use(rework.extend());
return this.rework.toString({ compress: this.compress });
};