Closed
Description
Hi all,
i have an own module in app/code/Namespace/Module.
In this module there is in /view/frontend a requirejs-conig.js
with:
var config = {
map: {
'*': {
test:'Namespace_Module/js/test'
}
}
};
The test.js is under /view/frontend/web/js.
In my theme (Namespace/name/) is a customfuncs.js under /web/js
This file is included in my layout default_head_blocks.xml
I have following require-statement in this customfuncs:
require(['jquery','test'], function(I$){}
I get an 404 for /pub/static/frontend/Namespace/themename/de_DE/test.js"
Do i have a misunderstanding with registering resources in modules or is there a mistake i dont see?
Greets