diff options
Diffstat (limited to 'node_modules/postcss-pseudoelements/index.js')
| -rw-r--r-- | node_modules/postcss-pseudoelements/index.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/node_modules/postcss-pseudoelements/index.js b/node_modules/postcss-pseudoelements/index.js deleted file mode 100644 index 10174af1..00000000 --- a/node_modules/postcss-pseudoelements/index.js +++ /dev/null @@ -1,22 +0,0 @@ -var postcss = require('postcss'); - -module.exports = postcss.plugin('pseudoelements', (options) => { - - options = options || { single: true }; - - var selectors = options.selectors || [ - 'before', - 'after', - 'first-letter', - 'first-line' - ] - - var replacements = new RegExp(':{1,}(' + selectors.join('|') + ')', 'gi'); - var replaceWith = options.single ? ':$1' : '::$1' - - return (css) => { - css.walkRules((rule) => { - rule.selector = rule.selector.replace(replacements, replaceWith); - }); - }; -}); |
