Open rstadler opened 9 years ago
connect: { options:{ port: 9999, hostname: "localhost", base: 'app', debug: true, open: true, keepalive: true }, proxies: [ { context: '/netops', host: "localhost", port: 8000, https: true, changeOrigin: false, debug: true, xforward: false } ], livereload: { options: { open: true, debug: true, middleware: function (connect, options) { grunt.log.writeln( "Connect: "+ JSON.stringify(connect) + ",options: "+ JSON.stringify(options)); if (!Array.isArray(options.base)) { options.base = [options.base]; } var middlewares = [require('grunt-connect-proxy/lib/utils').proxyRequest]; options.base.forEach(function (base) { grunt.log.writeln ("Pushing ["+ connect.static(base) +"]"); middlewares.push(connect.static(base)); }); return middlewares; } } } } });