Skip to content

Commit

Permalink
Implemented a fix in the Gulpfile which prevented posting forms when …
Browse files Browse the repository at this point in the history
…browsersync was being used
  • Loading branch information
jordykommeren committed Oct 2, 2018
1 parent 34b57cd commit 14409e1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 14409e1

Please sign in to comment.