Answer the question
In order to leave comments, you need to log in
How to include require.js in build file using r.js?
In all examples found on the Internet using r.js, all js files (except require.js) are combined into one, and then included as follows:
<script data-main="js/build.js" src="js/require.js"></script>
Answer the question
In order to leave comments, you need to log in
Everything was decided banally:
{
// ...
include: ["js/require.js" /* ... */],
out: "js/index.js"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question