Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Grunt IIS kill on exit
module.exports = function (grunt) {
// Some other grunt tasks
iisexpress: {
server: {
options: {
path: require('path').resolve('.') + '/[PATH OF WEBSITE HERE]',
killOn: 'iis.kill'
process.on('SIGINT', function() {
grunt.registerTask('default', ['iisexpress', /*Other tasks here*/]);

This comment has been minimized.

Copy link
Owner Author

@iamphill iamphill commented Nov 4, 2014

Using Grunt module for this.

it is awesome to save having to open to Visual Studio which can kill any PC in a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.