-
Notifications
You must be signed in to change notification settings - Fork 664
Description
Hello,
My project workspace looks like this.
Modules/
|--> Src/
| |--> Application/
| | |--> Application.js
| |--> Home/
| | |--> Home.js
| |--> Utils/
| | |--> Utils.js
|--> Vendors/
| |--> Underscore/
| | |--> Underscore.js
| |--> jQuery/
| | |--> jQuery.js
| |--> Require/
| | |--> require.js
|--> r.js
I am trying to minify all above files and concatenate them to a single file (main.min.js), like shown below.
(function(){ define('underscore', [], (){ /* Content */ }); define('Home', [], (){ /* Content */ }); define('Utils', [], (){ /* Content */ }); define('Application', [], (){ /* Content */ }); }());
I tried with r.js to achieve this, but didn't work out for me.
Can someone please explain whether this can be achieved by r.js or not ?
Thanks