How to use the vue-native-scripts/src/util/constants.CSS function in vue-native-scripts

To help you get started, we’ve selected a few vue-native-scripts 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 syumai / vue-native-custom-transformer-plugin / compiler / parsers / parseStyles.js View on Github external
function parseStyles(styles) {
  const parsedStylesObj = styles.reduce((prev, curr) => {
    const { content, lang } = curr;
    const transpiledContent = transpileStylesContent(content, lang);
    const cssAST = cssParse(transpiledContent);
    return Object.assign({}, prev, parseCSS(cssAST));
  }, {});
  return `const ${constants.CSS} = ${JSON.stringify(parsedStylesObj)}`;
}

vue-native-scripts

Compile Vue Native components to React Native

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages