From 14409e1045d7a2a0fa41753dc91e7b00f48fdb44 Mon Sep 17 00:00:00 2001 From: Jordy Kommeren Date: Tue, 2 Oct 2018 15:04:07 +0200 Subject: [PATCH] Implemented a fix in the Gulpfile which prevented posting forms when browsersync was being used --- Gulpfile.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index 9805fda..f0a07ff 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -12,9 +12,23 @@ var npmDependencies = { }; +var config = { + + browserSyncProxy: 'magento2-boilerplate.test' + +}; + gulp.task('watch', function() { browserSync.init({ - proxy: 'magento2-boilerplate.test' + proxy: { + target: config.browserSyncProxy + }, + "rewriteRules": [ + { + "match": "." + config.browserSyncProxy, + "replace": "" + } + ] }); gulp.watch("src/scss/**/*.scss", gulp.series('sass'));