bazar icon indicating copy to clipboard operation
bazar copied to clipboard

[QUESTION] How to customize Vue components

Open LarryBarker opened this issue 3 years ago • 0 comments

  • Bazar Version: latest
  • Laravel Version: 9
  • PHP Version: 8
  • Database Driver & Version: mysql 8

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

LarryBarker avatar May 29 '22 17:05 LarryBarker