From a6a5d841fd70e9aceb6fd757450c0691f3346661 Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Tue, 5 Jul 2016 11:38:18 -0700 Subject: Update dependencies and add a short README --- gulpfile.babel.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gulpfile.babel.js') diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 5de71c9..bb0e8b5 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -42,11 +42,18 @@ gulp.task('server', ['build'], (cb) => { // Start a webpack-dev-server new WebpackDevServer(webpack(myConfig), { contentBase: './dist', - publicPath: 'http://localhost:3009/', + publicPath: '/', stats: { colors: true }, - hot: false + hot: false, + proxy: { + "/confirm/*": { + bypass: function(req, res, proxyOptions) { + return "/pages/confirm/index.html"; + } + } + } }).listen(3009, 'localhost', function(err) { if(err) throw new gutil.PluginError('webpack-dev-server', err); gutil.log('[webpack-dev-server]', 'http://localhost:3009/'); -- cgit v1.3