Created
December 20, 2016 21:18
-
-
Save lrobeson/60bf03282ccf0de8c16207b5d3b9ff40 to your computer and use it in GitHub Desktop.
WIP: Grunt Connect config for standalone Gesso Pattern Lab instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect: | |
// Run http server to serve files | |
// https://github.com/gruntjs/grunt-contrib-connect | |
module.exports = function (grunt) { | |
grunt.config.merge({ | |
connect: { | |
server: { | |
options: { | |
base: | |
[ | |
'pattern-lab/public', | |
'pattern-lab', | |
'css', | |
'images', | |
'js', | |
'bower_components', | |
'/' | |
] | |
, | |
hostname: '127.0.0.1', | |
keepalive: true, | |
livereload: true, // needed for live reload setting in Watch tasks | |
open: true, // open in a new tab when started | |
// port: 8000, | |
// debug: true | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-connect'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment