When using r.js to package main.js app.js aa.js in node environment, there was an error and the ap.js a.js could not be found.
As long as I change the dependent js file name in require back to [‘app’,’aa’] it will compress normally, but then the alias I set in require.config is meaningless.
Excuse me, what is this? Where’s the mistake?
r.jsI won’t check you
configYou should be using
r.jsWhen ordering, take this
configPass it to him.
You have to read this chapter first.Using the optimizer as a node module
build.js, keep your various inside
config, and then call the
-o build.jsThe way, just pass the configuration in.
Finally, English is really not that difficult. Look carefully, I don’t believe you can’t understand a word. What does it mean to look it up in a dictionary?