Here is boilerplate repository that does exactly what you need.
Grunt requirejs concatenate and uglify the require modules to one file
-
01-10-2022 - |
Frage
Presently using grunt-contrib-requirejs plugin which has got
optimize : 'uglify2'
but no concat files to a single file option is found in that plugin. how to add or any example. I need all js files to be concatenated and uglified to a single file which has to be loaded in the very first load itself.
Thanks.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow