diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 96a76ea..8b6139d 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,5 @@ +* 0.4.1 + * added the "browserSync" option, which lets you customize all BrowserSync settings (thanks @aaronroberson) * 0.4.0 * fixed an issue with production styles bundle (fixes #96) * upgraded babel dependencies diff --git a/README.md b/README.md index 420f642..b96e2d3 100644 --- a/README.md +++ b/README.md @@ -719,6 +719,7 @@ Available options: * you can disable it by setting this option to false * browserSync * Pass in browserSync options. See http://www.browsersync.io/docs/options/ + * this should be defined like this: "browserSync": { // BrowserSync options } ## FAQ diff --git a/UPGRADE.MD b/UPGRADE.MD index c9fe1c8..c7a1574 100644 --- a/UPGRADE.MD +++ b/UPGRADE.MD @@ -1,5 +1,8 @@ # Upgrade guide +## From 0.4.0 to 0.4.1 +No modification mandatory with this release. + ## From 0.3.2 to 0.4.0 The way we construct the dist vendor css bundle has changed. In your vendor.scss file, if you import third party stylesheets from jspm_packages or from node_modules, then you'll need to change the relative path. diff --git a/src/gulp/tasks/serve.js b/src/gulp/tasks/serve.js index c8128a1..d3c322f 100644 --- a/src/gulp/tasks/serve.js +++ b/src/gulp/tasks/serve.js @@ -2,7 +2,7 @@ import AbstractTaskLoader from "../abstractTaskLoader"; import config from "../config"; -//import utils from "../utils"; +import utils from "../utils"; let browserSync = require("browser-sync").create(config.webServerNames.dev); diff --git a/src/gulp/utils.js b/src/gulp/utils.js index bafaa0e..28c4dd3 100644 --- a/src/gulp/utils.js +++ b/src/gulp/utils.js @@ -157,13 +157,13 @@ let mergeOptions = (obj1 = {}, obj2 = {}) =>{ let obj3 = {}; for(let attrname in obj1){ - if(obj1.hasOwnProperty(attrname)) { + if(obj1.hasOwnProperty(attrname)){ obj3[attrname] = obj1[attrname]; } } for(let attrname in obj2){ - if(obj2.hasOwnProperty(attrname)) { + if(obj2.hasOwnProperty(attrname)){ obj3[attrname] = obj2[attrname]; } }