How to use the postcss-selector-parser.ID function in postcss-selector-parser

To help you get started, we’ve selected a few postcss-selector-parser 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 youzan / zent / packages / zent / plugins / postcss-plugin-version-attribute.js View on Github external
selector.walk(node => {
        const { type } = node;
        if (
          type === parseSelector.CLASS ||
          type === parseSelector.ID ||
          type === parseSelector.ATTRIBUTE ||
          type === parseSelector.TAG
        ) {
          interestedNode = node;
          return false; /* break */
        }
      });
      if (interestedNode) {
github youzan / zent / packages / zent / plugins / postcss-plugin-version-attribute.js View on Github external
selector.walk(node => {
        const { type } = node;
        if (type === parseSelector.CLASS || type === parseSelector.ID) {
          skip = false;
        }
      });
      if (skip) {