peterbe/minimalcss

Multiple viewports?

Donderda opened this issue · 1 comments

Sorry, not an issue but more like a question: Does minimalcss calculate the css for different viewports by default? Like for smartphones and desktops (and everything between it), or do I have to specify the viewport for each resolution and put together a css file for this?

It, unfortunately, does not. It opens puppeteer with whatever it's current default viewport size is. But what you might want to do is to make sure it opens it twice! Once in a small viewport (e.g. mobile) and once in a large viewport (e.g. desktop) so that you get the union of the CSS necessary for both.
I wish there was a better mechanism to pass in options in minimalcss for how puppeteer should be opening the pages. A contribution would be most welcome.