Skip to content

Commit

Permalink
make browsersync HTTP by default
Browse files Browse the repository at this point in the history
I now see the notes on the config to use if not using a self-signed cert but starting with HTTP by default will help get others setup using gulp quicker. If accepted then an update to the "Using Browsersync" in the README will be needed.
  • Loading branch information
matthewselby authored Jan 7, 2018
1 parent dbb1cfb commit 015dc68
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,27 +339,19 @@ gulp.task('publish', function () {
* Process tasks and reload browsers on file changes.
*
* https://www.npmjs.com/package/browser-sync
*
* If you are not using a self-signed certificate, use the below config:
*
* browsersync( {
* proxy: 'genesis-starter.dev',
* notify: false,
* open: false,
* } );
*/
gulp.task('watch', function () {

// HTTPS (optional).
browsersync({
proxy: 'https://genesis-starter.dev',
proxy: 'http://genesis-starter.dev',
port: 8000,
notify: false,
open: false,
https: {
"key": "/Users/seothemes/.valet/Certificates/genesis-starter.dev.key",
"cert": "/Users/seothemes/.valet/Certificates/genesis-starter.dev.crt"
}
// https: {
// "key": "/Users/seothemes/.valet/Certificates/genesis-starter.dev.key",
// "cert": "/Users/seothemes/.valet/Certificates/genesis-starter.dev.crt"
// }
});

// Run tasks when files change.
Expand Down

0 comments on commit 015dc68

Please sign in to comment.