critters-webpack-plugin
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -237,3 +237,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
rule.selectors = rule.selectors.filter(function (sel) { | ||
sel = sel.replace(/::?[a-z-]+\s*{/gi, '{').trim(); | ||
sel = sel.replace(/::?[a-z-]+\s*(\{|$)/gi, '$1').trim(); | ||
try { | ||
@@ -240,0 +240,0 @@ return document.querySelector(sel) != null; |
{ | ||
"name": "critters-webpack-plugin", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Webpack plugin to inline critical CSS and lazy-load the rest.", | ||
@@ -5,0 +5,0 @@ "main": "dist/critters.js", |
@@ -300,3 +300,3 @@ /** | ||
// This means any selector for a pseudo-element or having a pseudo-class will be inlined if the rest of the selector matches. | ||
sel = sel.replace(/::?[a-z-]+\s*{/gi, '{').trim(); | ||
sel = sel.replace(/::?[a-z-]+\s*(\{|$)/gi, '$1').trim(); | ||
try { | ||
@@ -303,0 +303,0 @@ return document.querySelector(sel) != null; |
Sorry, the diff of this file is not supported yet
103192