Skip to content

Commit

Permalink
fix(js): remove product.js entry, import ProductCard on widgets load
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
leomp12 committed Apr 3, 2020
1 parent 7149f7c commit d032bcd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions @ecomplus/storefront-template/template/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ import lozad from 'lozad'
import * as cloneDeep from 'lodash.clonedeep'
import * as merge from 'lodash.merge'
import Glide from '@glidejs/glide'
import ProductCard from '@ecomplus/storefront-components/src/ProductCard.vue'

window._ = { cloneDeep, merge }
window.lozad = lozad
window.Glide = Glide
window.ProductCard = ProductCard

window.storefront = {
settings: window._settings,
Expand Down
2 changes: 2 additions & 0 deletions @ecomplus/storefront-template/template/js/lib/load-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import ecomClient from '@ecomplus/client'
import EcomSearch from '@ecomplus/search-engine'
import ecomPassport from '@ecomplus/passport-client'
import ecomCart from '@ecomplus/shopping-cart'
import ProductCard from '@ecomplus/storefront-components/src/ProductCard.vue'
import widgetProductCard from '@ecomplus/widget-product-card'

window.ecomClient = ecomClient
window.EcomSearch = EcomSearch
window.ecomPassport = ecomPassport
window.ecomCart = ecomCart
window.ProductCard = ProductCard

emitter.emit('ecom:ready')

Expand Down
1 change: 0 additions & 1 deletion @ecomplus/storefront-template/template/js/product.js

This file was deleted.

0 comments on commit d032bcd

Please sign in to comment.