critical
Advanced tools
Comparing version 2.0.0-17 to 2.0.0-18
{ | ||
"name": "critical", | ||
"version": "2.0.0-17", | ||
"version": "2.0.0-18", | ||
"description": "Extract & Inline Critical-path CSS from HTML", | ||
@@ -5,0 +5,0 @@ "author": "Addy Osmani", |
@@ -211,4 +211,3 @@ const {EOL} = require('os'); | ||
if (target.uncritical) { | ||
const uncriticalHref = normalizePath(path.relative(document.cwd, target.uncritical)); | ||
const uncriticalHref = normalizePath(path.relative(document.cwd, path.resolve(base, target.uncritical))); | ||
// Only replace stylesheets if the uncriticalHref is inside document.cwd and replaceStylesheets is not set via options | ||
@@ -215,0 +214,0 @@ if (!/^\.\.\//.test(uncriticalHref) && replaceStylesheets === undefined) { |
93918