Working project structure that uses grunt.js to combine JavaScript files using RequireJS?
问题 I have some projects that use RequireJS to load individual JavaScript modules in the browser, but I haven't optimized them yet. In both development and production, the app makes a separate request for each JavaScript file, and now I would like to fix that using Grunt. I have tried to put together a simple project structure to no avail, so I'm wondering if someone can provide a working example for me. My goals are the following: In development mode, everything works in the browser by issuing a