How to use the inline-style-prefixer/lib/generator.default function in inline-style-prefixer

To help you get started, we’ve selected a few inline-style-prefixer 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 necolas / react-native-web / scripts / inline-style-prefixer / create.js View on Github external
const browserList = {
  chrome: 38,
  android: 4,
  firefox: 40,
  ios_saf: 7,
  safari: 7,
  ie: 10,
  ie_mob: 11,
  edge: 12,
  opera: 16,
  op_mini: 12,
  and_uc: 9,
  and_chr: 38
};

generator(browserList, {
  path: path.join(__dirname, '../../packages/react-native-web/src/modules/prefixStyles/static.js')
});
github Khan / aphrodite / tools / generate_prefixer_data.js View on Github external
chrome: 30,
    android: 4,
    firefox: 25,
    ios_saf: 6,
    safari: 6,
    ie: 9,
    ie_mob: 9,
    edge: 12,
    opera: 13,
    op_mini: 5,
    and_uc: 9,
    and_chr: 30,
};

mkdirp(`${__dirname}/../lib`);
generateData(browserList, {
    path: `${__dirname}/../lib/staticPrefixData.js`,
});
github popcodeorg / popcode / src / services / inlineStylePrefixer / prefixData.gen.js View on Github external
module.exports = () => {
  const browserListForInlineStylePrefixer = {};

  for (const browser in browserList) {
    if (browser !== 'chromium') {
      browserListForInlineStylePrefixer[browser] = Number(browserList[browser]);
    }
  }

  const {prefixMap, plugins} = generateData(browserListForInlineStylePrefixer);

  return {code: generateFile(prefixMap, plugins, false)};
};