You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to minify a js that is over 100KB there is a warning from babel:
Warning [BABEL] Note: The code generator has deoptimised the styling of "path/to/file" as it exceeds the max of "100KB".
Even though its a warning, it prevents from starting an application.
To Reproduce
Steps to reproduce the behavior:
Create a js file that is over 100KB
Minify
Add to minify on build
See error
Expected behavior
There should be babel option in config that allows to change compact property to false
Additional context
It is an easy fix (Done it myself locally).
Steps to fix:
in BabelOptions.cs add: [JsonProperty("compact")] public bool Compact { get; set; }
in BabelCompiler.cs ConstructArguments method add: if (!options.Compact) arguments += " --compact false";
The text was updated successfully, but these errors were encountered:
When trying to minify a js that is over 100KB there is a warning from babel:
Warning [BABEL] Note: The code generator has deoptimised the styling of "path/to/file" as it exceeds the max of "100KB".
Even though its a warning, it prevents from starting an application.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be babel option in config that allows to change compact property to false
Additional context
It is an easy fix (Done it myself locally).
Steps to fix:
in BabelOptions.cs add:
[JsonProperty("compact")] public bool Compact { get; set; }
in BabelCompiler.cs ConstructArguments method add:
if (!options.Compact) arguments += " --compact false";
The text was updated successfully, but these errors were encountered: