Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.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
Jquery 如何在mvc应用程序中使用MSBuild触发Grunt或Gulp以进行缩小?_Jquery_Asp.net_Performance_Gruntjs_Gulp - Fatal编程技术网

Jquery 如何在mvc应用程序中使用MSBuild触发Grunt或Gulp以进行缩小?

Jquery 如何在mvc应用程序中使用MSBuild触发Grunt或Gulp以进行缩小?,jquery,asp.net,performance,gruntjs,gulp,Jquery,Asp.net,Performance,Gruntjs,Gulp,我没有得到任何关于如何在mvc项目中使用grunt或Gulp进行细化的例子,我的要求是grunt是否从项目文件夹中缩小js和css文件,bundle.config如何确保在发布模式下获取这些缩小的文件?grunt/Gulp不能与asp.net绑定一起工作。您只需设置bundle.config即可为您处理绑定和缩小。在MVC 5中,.net捆绑被gulp取代。@MikeSheehan,我想使用grunt缩小.net MVC应用程序,在我为MVC应用程序配置了带msbuild的CI的情况下,如何使用

我没有得到任何关于如何在mvc项目中使用grunt或Gulp进行细化的例子,我的要求是grunt是否从项目文件夹中缩小js和css文件,bundle.config如何确保在发布模式下获取这些缩小的文件?

grunt/Gulp不能与asp.net绑定一起工作。您只需设置bundle.config即可为您处理绑定和缩小。在MVC 5中,.net捆绑被gulp取代。@MikeSheehan,我想使用grunt缩小.net MVC应用程序,在我为MVC应用程序配置了带msbuild的CI的情况下,如何使用msbuild触发grunt任务。@MikeSheehan在MVC应用程序中进行应用程序文件夹脚本文件切分的最佳方法是什么?您是否有任何示例文档来描述这些步骤?您可以通过将命令添加到visual Studio中的生成事件来触发grunt任务工作室:如果你想用grunt做的只是缩小,我会坚持使用.net中内置的捆绑/缩小功能。