Working project structure that uses grunt.js to combine JavaScript files using RequireJS?
I use the grunt-contrib-requirejs task to build project based on require.js. Install it inside your project directory with: npm install grunt-contrib-requirejs –save-dev BTW: –save-dev will add the package to your development dependencies in your package.json. If you’re not using a package.json in your project, ignore it. Load the task in your grunt file with: grunt.loadNpmTasks(‘grunt-contrib-requirejs’); … Read more