vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
19 stars 13 forks source link

Check if serving all CSS styles from external file will improve page speed results #308

Open pkarw opened 5 years ago

pkarw commented 5 years ago

What is the motivation for adding / enhancing this feature?

Currently, we're outputting all the styles (extracted from Vue components) in the HTML - which causes pretty huge HTML bundle (but also let us avoid additional network calls).

We could do a PoC of mini-css-extract-plugin and keep it as an option for the production mode compiles for users to just .. well uncomment in the webpack config or enable by VS configuration parameter

more on this: https://forum.vuestorefront.io/t/remove-internal-css-from-page/579

DnD-Waxime commented 5 years ago

Hi, I'll try to work on this during the hackathon 👍