grunt-critical icon indicating copy to clipboard operation
grunt-critical copied to clipboard

Running task saves new CSS file with local paths

Open hdwebpros opened this issue 6 years ago • 2 comments

If I have a line of code in my CSS, like:

@font-face {
  font-family: 'gotham-book';
  src: url('../fonts/gotham-book.woff') format('woff');
}

When Grunt Critical is fired it changes the path to my local path.

Just like this: src:url(../../../../../websites/homestead/projects/myproject/user/themes/hdwp-theme/fonts/gotham-book.woff)

Any idea how I can preserve the file paths?

hdwebpros avatar Apr 30 '18 18:04 hdwebpros

Thanks for reporting @hdwebpros. This seems to be an error over at critical which i‘ve encountered recently. Already searching for a fix ;)

bezoerb avatar May 03 '18 19:05 bezoerb

Thanks for letting me know! I hope it is a simple fix

hdwebpros avatar May 04 '18 20:05 hdwebpros