Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Feb 18, 2020
1 parent 0b3a6c5 commit e31b5c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,21 +440,21 @@ Below are some examples of using common external minifiers.
#### Closure Compiler
See [Closure Compiler Application](https://developers.google.com/closure/compiler/docs/gettingstarted_app). Not tested.

```
``` go
m.AddCmdRegexp(regexp.MustCompile("^(application|text)/(x-)?(java|ecma)script$"), exec.Command("java", "-jar", "build/compiler.jar"))
```

### UglifyJS
See [UglifyJS](https://github.com/mishoo/UglifyJS2).

```
``` go
m.AddCmdRegexp(regexp.MustCompile("^(application|text)/(x-)?(java|ecma)script$"), exec.Command("uglifyjs"))
```

### esbuild
See [esbuild](https://github.com/evanw/esbuild).

```
``` go
m.AddCmdRegexp(regexp.MustCompile("^(application|text)/(x-)?(java|ecma)script$"), exec.Command("esbuild", "$in.js", "--minify", "--outfile=$out.js"))
```

Expand Down

0 comments on commit e31b5c8

Please sign in to comment.