Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit a856e08

Browse files
committed
fix(grunt): do a standard livereload over the built branch
1 parent 3db6e53 commit a856e08

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gruntFile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ module.exports = function (grunt) {
6060
demo: {
6161
files: ['demo/*', 'publish.js'],
6262
tasks: ['jshint', 'build:gh-pages']
63+
},
64+
livereload: {
65+
files: ['out/built/gh-pages/**/*'],
66+
options: { livereload: true }
6367
}
6468
},
6569

@@ -72,10 +76,8 @@ module.exports = function (grunt) {
7276
connect: {
7377
options: {
7478
base : 'out/built/gh-pages',
75-
port: grunt.option('port') || '8000',
76-
hostname: grunt.option('host') || 'localhost',
77-
open: 'http://<%= connect.options.hostname %>:<%= connect.options.port %>',
78-
livereload: grunt.option('port') || '8000'
79+
open: true,
80+
livereload: true
7981
},
8082
server: { options: { keepalive: true } },
8183
continuous: { options: { keepalive: false } }

0 commit comments

Comments
 (0)