-
-
Notifications
You must be signed in to change notification settings - Fork 179
JavaScript Minifier settings
The following are the options for minify within bundleconfig.json when minifying JavaScript files:
Type: bool Default: true
Enable/disable minification. This is a global minification setting and applies to all files types (JS, CSS, HTML etc).
[
{
"minify": {
enabled: true
}
}
]
Type: bool Default: true
true escapes no ASCII characters
[
{
"minify": {
alwaysEscapeNonAscii: true
}
}
]
Type: bool Default: true
true preserves important comments, that is either loud comments /*! */ or preserve/license comments: /** @preserve */ /**@license */
[
{
"minify": {
preserveImportantComments: true
}
}
]
Type: bool Default: true
Forces all rules to be terminated with semicolons if set to true
[
{
"minify": {
termSemicolons: true
}
}
]
Type: bool Default: true
true renames local variables
[
{
"minify": {
renameLocals: true
}
}
]
Type: String Default: ignore Values: ignore, makeImmediateSafe, makeAllSafe
How to treat renaming of variables inside eval statements. ignore does just that - doesn't rename any variables. makeImmediateSafe ensures no variables in the immediate scope of the eval statement will be renamed. makeAllSafe ensures no variables in the scope of the eval statement, nor in any parent scopes, will be renamed.
[
{
"minify": {
evalTreatment: "ignore"
}
}
]
Type: String Default: singleLine Values: singleLine, multipleLines, none
singleLine removes new lines and outputs on a single line whilst multipleLines indents lines with the number of characters specified by indentSize
[
{
"minify": {
outputMode: "singleLine"
}
}
]
Type: Number Default: 2 Special: Only applies if outputMode: "multipleLines"
The size of identation (number of spaces) at the start of lines, if outputMode: "multipleLines"
[
{
"minify": {
indentSize: 4
}
}
]
/*!
- Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
- License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */