Skip to content

bundleconfig.json specs

Ian Routledge edited this page Mar 3, 2017 · 3 revisions

The bundleconfig.json file is a collection of bundles. Multiple config files can be placed anywhere in the project directory structure.

[
  { },  // Bundle 1
  { },  // Bundle 2, etc...
]

Bundle Options

outputFileName

[
  {
    "outputFileName": "...",
  }
]

The name of the bundle file to output. This can contain a relative path from the bundleconfig.json file. This option is required to be set.

inputFiles

[
  {
    "inputFiles": [ 
      "...",
      "...",
    ],
  }
]

A collection of files to bundle together. These are relative paths to the bundleconfig.json. This option is not required, but an empty value will yield an empty output file.

minify

[
  {
    "minify": { }
  }
]

Minification options for the output type. This is not a required option and will default to enabled: minify: { enabled: true }.

Different configuration options are available depending on the output file type.

includeInProject

[
  {
    "includeInProject": true/false
  }
]

If the generated output files should be added to the Visual Studio project or not. Not required and defaults to false.

sourceMaps

[
  {
    "sourceMap": true/false
  }
]

If source maps should be generated for the bundled file. Not required and defaults to false.