Created
September 30, 2012 00:00
-
-
Save Hupotronic/3805444 to your computer and use it in GitHub Desktop.
Grunt file_strip_banner directive bug
This file contains 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
// Test comment. | |
// This should get stripped out! | |
// But it doesn't. | |
(function() { | |
var test = 'foo'; | |
})(); |
This file contains 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
/*global module:false*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
concat: { | |
dist: { | |
src: ['<file_strip_banner:first.js:line>', | |
'<file_strip_banner:second.js:line>'], | |
dest: 'fail.js' | |
} | |
} | |
}); | |
grunt.registerTask('default', 'concat'); | |
}; |
This file contains 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
// You're still going to see these comments in fail.js. | |
// <file_strip_banner:whatever.js:line> doesn't strip them out. | |
// :( | |
(function() { | |
var test = 'bar'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment