private static NuglifySettings GetSettings(NuglifySettings defaultSettings)
    {
        CodeSettings?nuglifyCodeSettings = defaultSettings.JsCodeSettings.CodeSettings.Clone();

        // Don't rename locals, this will kill a lot of angular stuff because we aren't correctly coding our
        // angular injection to handle minification correctly which requires declaring string named versions of all
        // dependencies injected (which is a pain). So we just turn this option off.
        nuglifyCodeSettings.LocalRenaming         = LocalRenaming.KeepAll;
        nuglifyCodeSettings.PreserveFunctionNames = true;

        return(new NuglifySettings(new NuglifyCodeSettings(nuglifyCodeSettings), defaultSettings.CssCodeSettings));
    }
 public SmidgeNuglifyJs(NuglifySettings settings, ISourceMapDeclaration sourceMapDeclaration, IRequestHelper requestHelper)
     : base(GetSettings(settings), sourceMapDeclaration, requestHelper)
 {
 }