Skip to content

Instantly share code, notes, and snippets.

@Hupotronic
Created September 30, 2012 00:00
Show Gist options
  • Save Hupotronic/3805444 to your computer and use it in GitHub Desktop.
Save Hupotronic/3805444 to your computer and use it in GitHub Desktop.
Grunt file_strip_banner directive bug
// Test comment.
// This should get stripped out!
// But it doesn't.
(function() {
var test = 'foo';
})();
/*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');
};
// 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