I have written Grunt task for minifying and combining multiple scripts and styles in each single file for Visual Studio ASP.NET project.
This grunt task can be run on project solution directory as follows and works fine.
Till now I have succeeded in running the above process using a shortcut as follows:
Toolsmenu in Visual Studio
Add, write following details:
Title: Grunt Command : C:\Windows\System32\cmd.exe Arguments: /k grunt Initial Directory: $(ProjectDir) Optionally, check **Use Output Directory** option.
Move the item to top in
External Tools Click
So, now the grunt task can be run from a shortcut. But still I could not make it run automatically on saving a file(.js/.css).