I have instaled mPDF library to generate PDFs from single posts. This is my Sage 9 working example. Click on the “Generate PDF” button at the bottom of the page.
I have no idea about how to generate a separate CSS file inside dist/styles with Webpack in order to make it available from a template. Any indication will be welcome while I learn basic webpack rudiments and understand its implementation in Sage. The learning curve is very expensive! Thank you!