Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Provide a way to hook into Webpack compilation process #5408

Closed
texel opened this issue Mar 14, 2017 · 3 comments
Closed

Comments

@texel
Copy link
Contributor

texel commented Mar 14, 2017

I need to load different types of assets in templates and use Webpack plugins which aren't supported by Angular CLI out of the box. Right now my only option for customizing the compilation process is to fork the Angular CLI project and use my own custom version.

Would it be possible to expose configuration such that I'm able to inject my own Webpack plugin during the build process? If so, I could keep the surface area of my customizations small and support my use cases while also being able to respond to breaking upstream changes in Angular CLI.

I'm willing to flesh this idea out more and contribute a PR, but I'd be interested in getting people's opinions and would also like to know the current state of ongoing extensibility discussions and how this plays into them (#2906 for instance).

@Meligy
Copy link
Contributor

Meligy commented Mar 14, 2017

This is considered for v2 of the CLI. No design yet so feel free to kick it off with your ideas.

For v1, the available way is ng eject.

@filipesilva
Copy link
Contributor

Dupe of #1656. For 2.0 we're looking at having an addon system to what allow hooks.

As @Meligy said, you can use ng eject as well.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants