Skip to content

Commit e4788bf

Browse files
authored
fix: banner comment in generated axe files (#1112)
1 parent 8138e55 commit e4788bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Gruntfile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ module.exports = function(grunt) {
231231
quote_style: 1
232232
},
233233
output: {
234-
comments: /^!/
234+
comments: /^\/*! aXe/
235235
}
236236
}
237237
},
@@ -243,9 +243,8 @@ module.exports = function(grunt) {
243243
};
244244
}),
245245
options: {
246-
preserveComments: function(node, comment) {
247-
// preserve comments that start with a bang
248-
return /^!/.test(comment.value);
246+
output: {
247+
comments: /^\/*! aXe/
249248
},
250249
mangle: {
251250
reserved: ['commons', 'utils', 'axe', 'window', 'document']

0 commit comments

Comments
 (0)