juice icon indicating copy to clipboard operation
juice copied to clipboard

`juiceResources` extracts some rules from an external stylesheet and puts them in `style` tag in a generated document

Open kapooostin opened this issue 4 years ago • 0 comments

I use an external stylesheet:

<link href="template/styles/styles.css" media="all" rel="stylesheet" type="text/css" />

And then I have in my generated HTML-file some rules put at the top inside a style tag like this:

<style media="all" type="text/css">
  .dgtl-texts-right .dgtl-link * {
    text-align: right !important;
  }
  .dgtl-dict .dgtl-link * {
    text-align: center !important;
  }
</style>

These rules are applied and inlined correctly though.

I tried to recreate the issue with come abstract markup and styles, but even in rather complex documents this seems to work fine. Whether my code is intricate enough or styles I do not know.

Below is the actual code I have in production that produces this extra style tag in output https://runkit.com/embed/zf593tsbx6wj

kapooostin avatar Apr 07 '20 12:04 kapooostin