How to use the inline-style-prefixer/lib/generator.generateFile 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 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)};
};