aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorMathias Biilmann Christensen <info@mathias-biilmann.net>2016-07-05 11:38:18 -0700
committerMathias Biilmann Christensen <info@mathias-biilmann.net>2016-07-05 11:38:18 -0700
commita6a5d841fd70e9aceb6fd757450c0691f3346661 (patch)
tree80963b353263e14989f784caaadfb73fa0e4230a /gulpfile.babel.js
parent8f6c70c51bf7e9e2045ae13c4052156877e77648 (diff)
Update dependencies and add a short README
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js11
1 files changed, 9 insertions, 2 deletions
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/');