Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
#22 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonLi8 committed Jan 16, 2020
1 parent e182a1e commit 2570c80
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions example.buildrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,33 @@
// files and subdirectories. This option is defaults to 'build'
"buildDirectory": "build",

// Minification Options for minifying the source code. Maps to a object
// Compress options for compiling the source code. Maps to a object
// literal of minification options. If not specified, the defaults stated
// below will be used.
"minify": {
"compress": {

// Boolean that indicates if the Builder should use Terser to minify code
// when building. See https://terser.org/. Defaults to true.
"minify": true,

// Boolean that indicates if the Builder should use Terser to mangle names
// when minifying. See https://terser.org/docs/api-reference#mangle-options.
// Defaults to true.
// when building. See https://terser.org/docs/api-reference#mangle-options.
// Defaults to true. ** Will be ignored if minify is false. **
"mangle": true,

// Boolean that indicates if the Builder should use the Terser beautifier
// when minifying. See https://terser.org/docs/api-reference#mangle-options.
// Defaults to false.
"beautify": false,

// Boolean that indicates if the Builder should use Babel to transpile code
// when minifying. See https://babeljs.io/. Defaults to true.
// when building. See https://babeljs.io/. Defaults to true.
"babelTranspile": true,

// Override options to pass to Babel when transpiling. Will be ignored if
// babelTranspile is false. See https://babeljs.io/docs/en/options.
// ** Override ** options to pass to Babel when transpiling. Will be ignored
// if babelTranspile is false. See https://babeljs.io/docs/en/options.
// See grunt-config/src/Builder.js transpile method for defaults.
"babelOptions": {},

// ** Override ** options to pass to Terser when minifying. Will be ignored
// if minify is false. See https://terser.org/docs/api-reference.
// See grunt-config/src/Builder.js minify method for defaults.
"minifyOptions": {}
},


Expand Down

0 comments on commit 2570c80

Please sign in to comment.