Skip to content

Instantly share code, notes, and snippets.

@JPGygax68
Last active September 18, 2017 20:58
Show Gist options
  • Save JPGygax68/6078473 to your computer and use it in GitHub Desktop.
Save JPGygax68/6078473 to your computer and use it in GitHub Desktop.
Using #grunt-express as a local web server during development #tags: web server, grunt-server
"use strict";
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
express: {
defaults: {
options: {
port: 3000,
bases: '.'
}
}
}
})
grunt.loadNpmTasks('grunt-express');
grunt.registerTask('dev', ['express', 'express-keepalive']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment