You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup the angular2 app using angular-cli@webpack.
Now I have my node services setup using gulp.
and I was starting it as :
`gulp.task('json-server',function(){
// Start the server at the beginning of the task
console.log('Start the server at the beginning of the task');
server.run(['server/json-server-starter.js']);
});`
in my package.json I modified script as: "start": "start ng serve && start gulp"
thus, it was starting my angular2 app along with json-server.
I want to migrate it to webpack i.e. configure all of my node-services using webpack only.
But I am not able to find webpack.config.js file in my app from where I can start my node-server.
I also want to know what the ideal project structure should be?
I mean should I use express-generator and then modify it to add my angular2 app or I can use angular-cli structure itself to configure my node services?
I tried using cli structure but I dont know how to use webpack for starting my node-server too.
Hi All,
I have setup the angular2 app using angular-cli@webpack.
Now I have my node services setup using gulp.
and I was starting it as :
in my package.json I modified script as:
"start": "start ng serve && start gulp"
thus, it was starting my angular2 app along with json-server.
I want to migrate it to webpack i.e. configure all of my node-services using webpack only.
But I am not able to find webpack.config.js file in my app from where I can start my node-server.
I also want to know what the ideal project structure should be?
I mean should I use express-generator and then modify it to add my angular2 app or I can use
angular-cli
structure itself to configure my node services?I tried using cli structure but I dont know how to use webpack for starting my node-server too.
My Configurations :
OS:
Windows 7
Versions.
Repro steps. : ng new angular-mongo-connectivity
any inputs?
Thanks in advance.
The text was updated successfully, but these errors were encountered: