I’m using requirejs with the text plugin. By default, requirejs assumes text.js lives in your baseUrl. However, I want to keep it somewhere else. Where/how/when do I need to configure requirejs?
I’m using requirejs with the text plugin. By default, requirejs assumes text.js lives in
Share
You can use requirejs’s path config for this. From the documentation:
So you could do something like this:
Then you can use
textas a dependency in modules and require.js will know to look for the file in/absolute/path/to/text.js.