Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ASP.NET绑定和缩小将删除未使用的javascript函数声明_Javascript_Asp.net Mvc_Google Authentication_Bundling And Minification - Fatal编程技术网

ASP.NET绑定和缩小将删除未使用的javascript函数声明

ASP.NET绑定和缩小将删除未使用的javascript函数声明,javascript,asp.net-mvc,google-authentication,bundling-and-minification,Javascript,Asp.net Mvc,Google Authentication,Bundling And Minification,我想从这里实现Google登录按钮: 本例使用一个JS函数,由API脚本中的事件调用。但我也在使用的捆绑和缩小功能是删除这个“运行时未使用的函数”onSignIn。正因为如此,我的谷歌认证无法正常工作 以下是我的脚本实现: bundles.Add(new ScriptBundle("~/bundles/StartManagerJS").Include(StartManagerJS)); 此缩小是否支持不删除未使用的JS函数的选项?您使用的缩小库是什么?@ariel我在项目中使用BundleCo

我想从这里实现Google登录按钮:

本例使用一个JS函数,由API脚本中的事件调用。但我也在使用的捆绑和缩小功能是删除这个“运行时未使用的函数”
onSignIn
。正因为如此,我的谷歌认证无法正常工作

以下是我的脚本实现:

bundles.Add(new ScriptBundle("~/bundles/StartManagerJS").Include(StartManagerJS));

此缩小是否支持不删除未使用的JS函数的选项?

您使用的缩小库是什么?@ariel我在项目中使用BundleConfig提供的内置捆绑