How to use the rework.at2x function in rework

To help you get started, we’ve selected a few rework 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 jankuca / ng-scroller / build / css.task.js View on Github external
return url_rel_to_target;
            }
            return url;
          };
          css_part.use(rework.url(fixUrl));

          css_code += css_part.toString();
        });

        var css = rework(css_code);
        css.use(svg(path.dirname(target)));
        if (rework_flags.autoprefixer) {
          css.use(autoprefixer(rework_flags.autoprefixer).rework);
        }
        if (rework_flags.at2x) {
          css.use(rework.at2x());
        }
        if (rework_flags.colors) {
          css.use(rework.colors());
        }
        if (rework_flags.extend) {
          css.use(rework.extend());
        }
        if (rework_flags.ease) {
          css.use(rework.ease());
        }
        if (rework_flags.references) {
          css.use(rework.references());
        }

        var css_result = css.toString({
          compress: minify
github component / component.github.io / lib / build / rework.js View on Github external
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();
}
github tj / styl / styl.js View on Github external
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 });
};
github tj / styl / index.js View on Github external
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 });
};