Custom Module and Debug Client Script

Hi. I created a custom module using this documentation. https://virtocommerce.com/docs/latest/developer-guide/create-new-module/

I see my custom module appearing in the menu. I have a few questions.

  1. It seems I need to run vc-build compress each time for my changes to be visible in my local environment. Is that the case? Seems its using the js from the /dist folder in the archive.

  2. Is there a way to have that script in an unminified format? In other words I either want the /dist/app.js to be unminified to make debugging more easy.

Thanks

Brian

Hi Brian.

You don’t need to do anything special. The scripts support debugging in Chrome.

https://virtocommerce.com/docs/latest/developer-guide/deploy-module-from-source-code/#testing