Skip to content

Instantly share code, notes, and snippets.

@yashhere
Last active March 5, 2018 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashhere/beaa63d30393e872bf1c3f612d5f29bc to your computer and use it in GitHub Desktop.
Save yashhere/beaa63d30393e872bf1c3f612d5f29bc to your computer and use it in GitHub Desktop.
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