Install this grunt plugin next to your project's Gruntfile.js with:
npm install grunt-vnuserver --save-dev
Then add this line to your project's
The port on which to start the server.
Whether or not to skip server startup if port is already in use. Task will fail if port is in use and skippable is false.
Whether or not to keep the vnu server running even after grunt exists. If false, vnu server is killed when grunt exists.
Consider the following configuration in Gruntfile.js in which the
watch task is set to run
htmllint every time the source file changes.
By starting the validator in server mode once using the
vnuserver task, validations by
htmllint can be performed much faster by simply connecting to this already-running server.
Copyright Bennie Swart. Licensed under the MIT license.