From 8829a246229c9c7169acdd48e480994149a13b7c Mon Sep 17 00:00:00 2001 From: Jordy Kommeren Date: Fri, 30 Nov 2018 10:55:07 +0100 Subject: [PATCH] Fix browsersync issues with ajax calls --- Gulpfile.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index f99a813..f0a07ff 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -13,21 +13,10 @@ var npmDependencies = { }; var config = { + browserSyncProxy: 'magento2-boilerplate.test' -}; -gulp.task('watch', function() { - browserSync.init({ - proxy: { - target: config.browserSyncProxy - }, - "rewriteRules": [ - { - "match": "." + config.browserSyncProxy, - "replace": "" - } - ] - }); +}; gulp.task('watch', function() { browserSync.init({