I found one
But it didn’t work according to the example, and then I dug out
After much tossing, it still failed to compile. = =,
I don’t know if anyone uses requirejs in laravel5, how to merge files.
伊谢尔伦2017-05-16 16:58:36
In principle, requirejs does not need to be compiled, unless you want to merge and package all AMD files into one (but this one-size-fits-all approach may not speed up the loading of js). If you want to package it, it has nothing to do with laravel. All grunt and gulp packaging optimization tools for requirejs are based on r.js written by the author of requirejs. Check your configuration carefully. Generally, it is not possible to compile normally because of incorrect configuration. , such as baseUrl or using relative paths when referencing AMD modules, etc.