Skip to content

Commit

Permalink
fix comment regex in gulp minify
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed May 17, 2018
1 parent 9f8a3aa commit 5925633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-minify/src/index.js
Expand Up @@ -12,7 +12,7 @@ module.exports = function babelMinify(
inputSourceMap,
sourceMaps = false,
sourceType = "script",
comments = /^\**!|@preserve|@license|@cc_on/,
comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/,

// to override the default babelCore used
babel = babelCore,
Expand Down
2 changes: 1 addition & 1 deletion packages/gulp-babel-minify/src/index.js
Expand Up @@ -13,7 +13,7 @@ function gulpBabelMinify(
{
babel = babelCore,
minifyPreset = babelPresetMinify,
comments = /preserve|licen(s|c)e/,
comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/,
sourceType = "script"
} = {}
) {
Expand Down

0 comments on commit 5925633

Please sign in to comment.