Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Last active December 19, 2015 21:19
Show Gist options
  • Select an option

  • Save wrumsby/6019257 to your computer and use it in GitHub Desktop.

Select an option

Save wrumsby/6019257 to your computer and use it in GitHub Desktop.
Gruntfile that uses the r.js optimiser for RequireJS
module.exports = function(grunt) {
grunt.initConfig({
requirejs: {
compile: {
options: {
baseUrl: './js',
mainConfigFile: 'require-config.js',
dir: './build/',
paths: {
// default path if pulled in using Bower
jquery: '../components/jquery/jquery'
},
modules: [
{
name: 'bolderiser'
}
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.registerTask('default', ['requirejs']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment