From e4788bf2f6609297b586243ed9c7752e4e5ba075 Mon Sep 17 00:00:00 2001 From: Jey Date: Thu, 30 Aug 2018 06:55:51 -0400 Subject: [PATCH] fix: banner comment in generated axe files (#1112) --- Gruntfile.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 813b3e0cea..3512ef2963 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -231,7 +231,7 @@ module.exports = function(grunt) { quote_style: 1 }, output: { - comments: /^!/ + comments: /^\/*! aXe/ } } }, @@ -243,9 +243,8 @@ module.exports = function(grunt) { }; }), options: { - preserveComments: function(node, comment) { - // preserve comments that start with a bang - return /^!/.test(comment.value); + output: { + comments: /^\/*! aXe/ }, mangle: { reserved: ['commons', 'utils', 'axe', 'window', 'document']