Type bundle[]
File match bundleconfig.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/bundleconfig-json/latest.json
Source https://www.schemastore.org/bundleconfig.json

Validate with Lintel

npx @lintel/lintel check
Type: bundle[]

Schema for bundleconfig.json files

Items

object
inputFiles string[] required

One or more relative file names or globbing patterns to bundle. Example: "scripts/**/*.js"

outputFileName string required

The relative path to the desired output file name.

minLength=1
includeInProject boolean

Set to true to include the output file in the project. Doesn't work in some Visual Studio project types like ASP.NET Core applications.

Default: true
minify object

Specify options for minification of the output file.

2 nested properties
enabled boolean required
gzip boolean

Produce a .gz file after minification.

Default: false

Definitions

jsBundle
outputFileName
pattern=\.js$
sourceMap boolean

JavaScript only. Set to true to produce a source map.

sourceMapRootPath string

JavaScript only. Sets a root path for source maps.

Default: ""
minify object
5 nested properties
alwaysEscapeNonAscii boolean

JavaScript only. Gets or sets a flag indicating whether to always escape non-ASCII characters as \uXXXX or to let the output encoding object handle that via the JsEncoderFallback object for the specified output encoding format.

Default: false
evalTreatment enum

JavaScript only.

Default: "ignore"
Values: "ignore" "makeAllSafe" "makeImmediateSafe"
preserveImportantComments boolean

JavaScript only.

Default: true
renameLocals boolean

JavaScript only. Controls if local variables should be shortened.

Default: true
termSemicolons boolean

Forces all rules to be terminated with semicolons if set to true.

Default: true
cssBundle
outputFileName
pattern=\.css$
minify object
4 nested properties
colorNames enum

CSS only. If no color names are to be used, set this value to 'hex'. If a set of colors recognized by all major browser is okay to use (W3C-strict validation is not required), set this value to 'major'.

Default: "strict"
Values: "hex" "major" "noSwap" "strict"
commentMode enum

CSS only. How to treat comments in the code. The default is 'none', which will strip all comments except 'important' comments. 'all' will leave all comments, and 'hacks' will only leave certain known comment-based hacks.

Default: "important"
Values: "none" "all" "hacks" "important"
adjustRelativePaths boolean

CSS only. Adjust relative paths inside the url() function.

Default: true
termSemicolons boolean

Forces all rules to be terminated with semicolons if set to true.

Default: false
htmlBundle
outputFileName
pattern=\.(html|htm)$
minify object
11 nested properties
collapseBooleanAttributes boolean

HTML only. Remove values from boolean attributes.

Default: true
collapseWhitespace boolean

HTML only. Indicating whether to collapse whitespaces.

Default: true
isFragmentOnly boolean

HTML only. Indicating whether the parsing is occurring on an HTML fragment, to avoid creating missing tags (like html, body, head).

Default: true
keepOneSpaceWhenCollapsing boolean

HTML only. Indicating whether to keep one space when collapsing.

Default: false
minifyEmbeddedCssCode boolean

HTML only. Minify CSS code in style tags.

Default: true
minifyEmbeddedJsCode boolean

HTML only. Minify JS code in script tags.

Default: true
minifyInlineCssCode boolean

HTML only. Minify CSS code in style attributes.

Default: true
preserveCase boolean

HTML only. Preserve case of tag and attribute names.

Default: false
removeHtmlComments boolean

HTML only. Remove all HTML comments except conditional, noindex, Knockout.js containerless comments and Angular.js comment directives.

Default: true
removeOptionalEndTags boolean

HTML only. Remove optional end tags.

Default: false
removeQuotedAttributes boolean

HTML only. Indicating whether to remove quoted attributes when possible.

Default: true
ajaxminBaseSettings
indentSize integer

For the multi-line output feature, how many spaces to use when indenting a block (see outputMode).

Default: 2
outputMode enum

SingleLine minifies everything to a single line. MultipleLines breaks the minified code into multiple lines for easier reading.

Default: "singleLine"
Values: "multipleLines" "singleLine" "none"
bundle object
inputFiles string[] required

One or more relative file names or globbing patterns to bundle. Example: "scripts/**/*.js"

outputFileName string required

The relative path to the desired output file name.

minLength=1
includeInProject boolean

Set to true to include the output file in the project. Doesn't work in some Visual Studio project types like ASP.NET Core applications.

Default: true
minify object

Specify options for minification of the output file.

2 nested properties
enabled boolean required
gzip boolean

Produce a .gz file after minification.

Default: false