Closed leomp12 closed 4 years ago
@matheusgnreis take a look here please
@thiagoabreudev @ThaisChaves just a note, it'll also be included to docs (https://github.com/ecomplus/storefront/issues/169)
Only one of them? I think they complete each other, with storefront.webpack.js we can do deeper edits, just like you said.
@matheusgnreis not only one, all of 3 ways, I've just listed sorted by easier to harder (in my vision), but idea is to support all those customization strategies with easy (as possible).
Related to EJS includes for our widgets and components customization (such as Vue slots) https://github.com/mde/ejs/issues/500
Edit: Using views
EJS option (not documented)
Thinking about moving entire EJS (pages
) to Storefront Starter and use Git programmatically to make updates, it would prevent needing to copy and paste EJS code to edit.
Show me the code:
git subtree pull https://github.com/ecomplus/storefront-starter master --squash
grep -lr '<<<<<<<' . | xargs git checkout --ours
I'm just not sure yet if it can be consistent without having to do lot of work to implement :thinking:
How Storefront V2 may be customized (from easier to harder) and TODOs:
Insert HTML, JS and CSS with specified files predefined at Storefront Starter:
views
in new partials to make possible to insert HTML in more (any) places;pages
with new insert partials and respective imports;Edit prerendered HTML through EJS or dynamically update DOM with custom JS (can use jQuery):
components
may have predefined places for additional HTML;storefront.webpack.js
to make deeper edits on Vue component parts (HTML, JS or SCSS);