Feature request. Angular-cli has a perfectly good webpack setup. This is continously improved upon and follows best practice for angular projects. JHipster's webpack config is not compatible and the builds it produces differs very much from what angular-cli produces. Standards are important, and best practices should be enforced. A great product like JHipster should be a role-model for how a good solution structure should be.
JHipster states that it is compatible with angular-cli, but this is limited to angular-cli blueprints like generating new components. One cannot build a jhipster project using angular-cli and therefore one cannot take advantage of the build optimizations the Angular team has developed, nor the latest features provided by the angular team.
JHipster already has all the files required from angular-cli. I propose that
webpack
folder be removed from the generated files, package.json
include the standard angular-cli scripts like ng build
and ng-serve
(with proxy to backend off course)This applies to all jHipster versions > 4.0.0
This was tried already and was given up see the discussion here. You are welcome to try again and if you can get all the functionality we support working and address all the pain points mentioned in that discussion we will be happy to make the switch
I'm closing this as nobody has volontered to do this.
Please note that I would like to follow Angular CLI's Webpack build, but:
-> once again, I'd rather use Angular CLI's Webpack build, as this would be less work and trouble for us, but I don't think this is a priority. That's a lot of work and there are also some drawbacks. We are working on React support, and soon on VueJS support, so unless someone steps in and decides to do this, this will not be done anytime soon.
How do you feel about your pain points now ? This topic should be reviewed again.
If someone wants to give a try to Angular Cli again, it would be very welcome !
But I don't think the team has the bandwidth, so don't hesitate to post here the result.
FWIW, I spoke with @mgechev from the Angular team last night. He's interested in helping make Angular CLI work with JHipster. He's willing to do a call, but I told him it'd probably be more appropriate for us to compose a list of issues we have and see if Angular CLI has extension points to solve them.
Most helpful comment
FWIW, I spoke with @mgechev from the Angular team last night. He's interested in helping make Angular CLI work with JHipster. He's willing to do a call, but I told him it'd probably be more appropriate for us to compose a list of issues we have and see if Angular CLI has extension points to solve them.