Skip to content

Commit

Permalink
Fix browsersync issues with ajax calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jordykommeren committed Nov 30, 2018
1 parent 0241268 commit cbfba2e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@ 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({
proxy: {
Expand Down

0 comments on commit cbfba2e

Please sign in to comment.