Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Created December 20, 2016 21:18
Show Gist options
  • Save lrobeson/60bf03282ccf0de8c16207b5d3b9ff40 to your computer and use it in GitHub Desktop.
Save lrobeson/60bf03282ccf0de8c16207b5d3b9ff40 to your computer and use it in GitHub Desktop.
WIP: Grunt Connect config for standalone Gesso Pattern Lab instance
// 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