angularjs - How to start express server in grunt? -
i generated angular 1.0 app yeoman. gruntfile not contain express server config:
connect: { options: { port: 9000, // change '0.0.0.0' access server outside. hostname: 'localhost', livereload: 35729 }, livereload: { options: { open: true, middleware: function (connect) { return [ connect.static('.tmp'), connect().use( '/bower_components', connect.static('./bower_components') ), connect().use( '/app/styles', connect.static('./app/styles') ), connect.static(appconfig.app) ]; } } },
how can add express server configuration it? can grunt-contrib-connect?
you can use "grunt-express-server" https://www.npmjs.com/package/grunt-express-server. don't know if can use "grunt-contrib-connect" this.
Comments
Post a Comment