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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -