ecomplus / storefront

Modern and high performant headless eCommerce Storefront. PWA & JAMstack architecture ready for E-Com Plus APIs. Built with Vue.js, extensible through widgets and editable with Netlify CMS.
https://developers.e-com.plus/storefront/
MIT License
101 stars 36 forks source link

CMS insert code preview #305

Closed leomp12 closed 4 years ago

leomp12 commented 4 years ago

Is your feature request related to a problem? Please describe. Every change on CSS/HTML via CMS insert code page can be seen only after a new deploy, specially for CSS changes it's so much annoying and may trigger lot of unnecessary deploys.

Describe the solution you'd like Render a template preview for Layout > Insert Code, it may be easier then pages preview as it doesn't have sections d&d and no need to work with EJS (although it can be used too). Render component may get home HTML and add/replace code on </head> and </body> dynamically.

Describe alternatives you've considered N/A

Additional context A little related to https://github.com/ecomplus/storefront/issues/172

talissonf commented 4 years ago

https://github.com/ecomplus/storefront/pull/316