Skip to content
Browse files

Merge pull request #505 from blakeblackshear/hardcodedappindex

Added ability to configure app index file for rjs task
  • Loading branch information...
2 parents bec878f + 94aa080 commit d89ebec772438fd8035e0e3202a990ceb8567f29 @addyosmani addyosmani committed Sep 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli/tasks/rjs.js
View
2 cli/tasks/rjs.js
@@ -8,7 +8,7 @@ module.exports = function(grunt) {
var options = grunt.config(this.name) || {};
// Verify if the application contains a data-main attribute
- var appIndexPath = path.resolve('../app/index.html');
+ var appIndexPath = path.resolve('mainFile' in options ? '../app/' + options.mainFile : '../app/index.html');
var indexBuffer = fs.readFileSync(appIndexPath, 'utf8');
var hasDataMain = (indexBuffer.match(/data-main=['"]([^'"]+)['"]/));

0 comments on commit d89ebec

Please sign in to comment.
Something went wrong with that request. Please try again.