Merge requirejs in laravel5
淡淡烟草味
淡淡烟草味 2017-05-16 16:56:36
0
1
578

I found one

  • laravel-elixir-requirejs,

But it didn’t work according to the example, and then I dug out

  • gulp-requirejs

After much tossing, it still failed to compile. = =,

I don’t know if anyone uses requirejs in laravel5, how to merge files.

淡淡烟草味
淡淡烟草味

reply all(1)
伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template