Visual Studio + grunt - 根据配置运行任务? [英] Visual Studio + grunt - run tasks depending on configuration?

查看:96
本文介绍了Visual Studio + grunt - 根据配置运行任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用visual studio的grunt,并且我不知道如何根据配置(调试,发布等)来运行特定的任务。

您可以在构建之前,构建之后运行任务,但是如何将其绑定到配置?

解决方案

< shameless-plug /> vs2013 / vs2015的VsCommandBuddy扩展。使用宏中的配置名称作为要执行的命令的参数。


I've just start playing with grunt for visual studio and I can't figure out how to run particular tasks depending on configuration (debug, release, etc).

You can run tasks before build, after build, etc. But how to bind it to the configuration?

解决方案

<shameless-plug /> I do this using VsCommandBuddy extension for vs2013/vs2015. Using the configurationname in a macro as parameter for the command you'd like to execute.

这篇关于Visual Studio + grunt - 根据配置运行任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆