4.4
Why is the javscript requirement of my module not being implemented well?
Hi I try to add pece of javascript with help of the requirement-statement.
After getting error, that my module was not found, I came along with that code.
Requirements::javascript("orderprofilefeature:javascript/order.js");
I get no error anymore but in the html-code this script-tag is added which wont work:
<script type="application/javascript" src="orderprofilefeature:javascript/order.js"></script>
the module path:
vendor/schrattenholz/orderprofilefeature
the path to order.js:
vendor/schrattenholz/orderprofilefeature/javscript/order.js
the expose-statement of the composer-file:
"extra": {
"expose": [
"javascript",
"css",
"images"
]
},
any help appreciated