Angular-cli: we need Angular Cli webpack to be configurable for build files.

Created on 22 Nov 2016  路  4Comments  路  Source: angular/angular-cli

I need webpack to be configurable for build and dev... special;;y for dev it's not fair to work with dev env on webpack host I need for example to host that on IIS as i need to use the windows authentication while working on dev environment..

we need that fix asap, it's very important for angular cli users to have an opertunity to configure all their webpack option. we should be able to debug and use windows authentication in development mode..

regards,
Sameh

Most helpful comment

If you heavily depend on custom configuration then angular-cli might not be for you and a custom webpack setup might be a better choice.

An addon system is planned, but that's after v1.0 sometime next year.

All 4 comments

If you heavily depend on custom configuration then angular-cli might not be for you and a custom webpack setup might be a better choice.

An addon system is planned, but that's after v1.0 sometime next year.

see also #2047

@samehmagdytawfik i propose a temporary solution to you: add a webpack.config.js to the root folder of your repo and try to require('angular-cli/packages/angular-cli/models/webpack-build-common.ts').getWebpackCommonConfig() and customize that. it's going to be a lot of work though and you need to add custom npm scripts llike to your package.json. see https://github.com/angular/angular-cli/blob/master/packages/angular-cli/models/webpack-build-common.ts

I know @grizzm0's answer wasn't what you were looking for, but it's the accurate one.

Also dupe of https://github.com/angular/angular-cli/issues/1656

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delasteve picture delasteve  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

daBishMan picture daBishMan  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

sysmat picture sysmat  路  3Comments