Last active
December 19, 2015 21:19
-
-
Save wrumsby/6019257 to your computer and use it in GitHub Desktop.
Gruntfile that uses the r.js optimiser for RequireJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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