Skip to content

Commit

Permalink
update readme and test
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed May 17, 2018
1 parent 5925633 commit e4ff8a4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/babel-minify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Refer [babel-preset-minify options](https://github.com/babel/minify/tree/master/
+ `minifyPreset`: Custom minify preset
+ `inputSourceMap`: Input Sourcemap
+ `sourceMaps`: [Boolean]
+ `comments`: [Function | RegExp | Boolean]

## CLI Options

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-minify/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function babelMinify(
inputSourceMap,
sourceMaps = false,
sourceType = "script",
comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/,
comments = /^\**!|@preserve|@licen[sc]e|@cc_on/,

// to override the default babelCore used
babel = babelCore,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// FIXME: for some reason, the inner `if` statement gets indented 4 spaces.
function foo() {
if (a) {
if (b()) return false;
if (b()) return false;
} else if (c()) return true;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// FIXME: for some reason, the inner `if` statement gets indented 4 spaces.
function foo() {
if (a) {
if (b()) return false;
Expand Down
1 change: 1 addition & 0 deletions packages/gulp-babel-minify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Default: `{}`

+ `babel`: Use a custom `@babel/core`
+ `minifyPreset`: Use a custom `babel-preset-minify`
+ `comments`: [Function | RegExp | Boolean]
2 changes: 1 addition & 1 deletion packages/gulp-babel-minify/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function gulpBabelMinify(
{
babel = babelCore,
minifyPreset = babelPresetMinify,
comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/,
comments = /^\**!|@preserve|@licen[sc]e|@cc_on/,
sourceType = "script"
} = {}
) {
Expand Down

0 comments on commit e4ff8a4

Please sign in to comment.