conedevelopment / bazar

Bazar is an e-commerce package for Laravel applications.
https://root.conedevelopment.com
MIT License
421 stars 56 forks source link

[QUESTION] How to customize Vue components #203

Closed LarryBarker closed 11 months ago

LarryBarker commented 2 years ago

Description:

The docs describe how to publish assets, but do not cover how to build assets after they have been customized. I found this issue (https://github.com/conedevelopment/bazar/issues/183) that suggests using the --mix flag when publishing vendor assets. However, I still have issues trying to build the frontend:

image

There are several other packages that throw errors as well, including daytime.js, vue itself, and others. I have tried including these as external libraries in my webpack config, but have not been able to find a solution yet.

It would be extremely helpful to have an example with more information in the docs. I'm happy to help contribute this if @iamgergo can give me the details on how to set this up properly.

Thanks!

Steps To Reproduce:

  1. Install the package in a new app
  2. Publish vendor assets with the --mix flag
  3. Attempt to customize one of the vendor components
  4. Build assets with npm run dev
  5. See if you have any errors