What is the public URL for this file?

In the module located at app/code/MyCompany/MyModulethere is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/and the luma theme with the en_US locate is used.

What is the public URL for this file?
A . https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js
B . https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js
C . https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js
D . https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js

Answer: A

Explanation:

Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments