Skip to content
This repository was archived by the owner on Jun 26, 2018. It is now read-only.

Commit dcc325a

Browse files
EvanLovelyJonathan Dallas
authored and
Jonathan Dallas
committed
Trigger Browser Sync reload after Pattern Lab build (#506)
1 parent 006ce07 commit dcc325a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

styleguide/tools/gulp/tasks/patternlab.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ var gulp = require('gulp'),
99

1010
module.exports = function patternLabTask(config, env){
1111

12+
var bsPort = config.local.browserSyncPort || 3000;
1213
gulp.task('patternlab', function() {
13-
run('php ' + config.patternLabRoot + '/core/console --generate --patternsonly').exec();
14+
run('php ' + config.patternLabRoot + '/core/console --generate --patternsonly && browser-sync reload --port ' + bsPort).exec();
1415
});
1516

1617
// gulp.task('patternlab', function(next) {

0 commit comments

Comments
 (0)