From 88f4debadd65f8e286646bb58a5cf7f7c420db14 Mon Sep 17 00:00:00 2001 From: Vignesh Shanmugam Date: Thu, 17 May 2018 15:05:03 +0200 Subject: [PATCH] fix comment regex in gulp minify --- packages/gulp-babel-minify/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gulp-babel-minify/src/index.js b/packages/gulp-babel-minify/src/index.js index eb3e638e4..bd524ce21 100644 --- a/packages/gulp-babel-minify/src/index.js +++ b/packages/gulp-babel-minify/src/index.js @@ -13,7 +13,7 @@ function gulpBabelMinify( { babel = babelCore, minifyPreset = babelPresetMinify, - comments = /preserve|licen(s|c)e/, + comments = /^\**!|@preserve|@license|@cc_on/, sourceType = "script" } = {} ) {