Tag: yeoman

Grunt Livereload + Grunt Connect Proxy

我正在使用Rails作为我的API,AngularJS在前面,我遇到了一些问题,让livereload / grunt connect proxy正常工作。 这是我的gruntfile的片段: connect: { options: { port: 9000, // Change this to ‘0.0.0.0’ to access the server from outside. hostname: ‘localhost’, livereload: 35729 }, proxies: [ { context: ‘/api’, host: ‘localhost’, port: 3000 } ], livereload: { options: { open: true, base: [ ‘.tmp’, ” ], middleware: function (connect, options) { […]