gajus / usus

Webpage pre-rendering service. ⚡️
Other
805 stars 33 forks source link

Prevent inline styling #30

Closed afontcu closed 6 years ago

afontcu commented 6 years ago

Hi!

when I run usus without any flag the output has all my styles inlined, which is undesirable as my html files grows up to 5000 LOC.

Shouldn't inline styling be disabled by default? Am I doing something wrong? I wrapped usus in a webpack plugin, but I'm just running it like this, nothing fancy

const Usus = require('usus')
Usus.render('someUrl')

thanks for your time!

gajus commented 6 years ago

https://github.com/gajus/usus#configuration

afontcu commented 6 years ago

Hi,

thanks, I read that Using the --inlineStyles option returns HTML document with CSS inlined but since I'm not providing that flag, shouldn't I expect the HTML document without the CSS inlined, but linked?

Thanks!

gajus commented 6 years ago

You need to provide --inlineStyles false as an option.