I'm using require js and want to optimize requests by reading documentation in github , I know you can set up a task in Grunt to concatenate my modules plus I'm a bit confused on how to set up this task and how exactly it will work. Structure:
I'm using require js and want to optimize requests by reading documentation in github , I know you can set up a task in Grunt to concatenate my modules plus I'm a bit confused on how to set up this task and how exactly it will work. Structure:
What you are looking for will find in the articles below, examples of how to proceed with the use of RequireJS and the concatenation / minification of it:
Note the use of uglify for optimization.