Permalink
Browse files

update data-main attribute to link to the minified main.js

  • Loading branch information...
1 parent 9b0f333 commit 5da45a6f1c04760d15baf0b674a2063fed2730d7 @martinblech martinblech committed Jul 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 tasks/usemin.js
View
@@ -105,6 +105,7 @@ module.exports = function(grunt) {
grunt.log.verbose.writeln('Update the HTML to reference our concat/min/revved script files');
content = grunt.helper('replace', content, /<script.+src=['"](.+)["'][\/>]?><[\\]?\/script>/gm);
+ content = grunt.helper('replace', content, /<script.+data-main=['"](.+)["'].*src=.*[\/>]?><[\\]?\/script>/gm);
grunt.log.verbose.writeln('Update the HTML with the new css filenames');
content = grunt.helper('replace', content, /<link rel=["']?stylesheet["']?\shref=['"](.+)["']\s*>/gm);

0 comments on commit 5da45a6

Please sign in to comment.