Skip to content

Instantly share code, notes, and snippets.

@yashhere
Last active Mar 5, 2018
Embed
What would you like to do?
connect: {
server: {
options: {
port: 8080,
base: 'public',
hostname: 'localhost',
livereload: true,
middleware: function (connect, options, middlewares) {
middlewares.unshift(require('grunt-connect-proxy/lib/utils').proxyRequest);
return middlewares;
}
},
proxies: [
{
context: '/api',
host: 'localhost',
port: 8000,
https: false,
rewrite: {
'^/api': '/backend'
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment