-
Notifications
You must be signed in to change notification settings - Fork 12k
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: Specify target output (e.g. web, electron-renderer) #5767
Comments
Currently we don't support other targets, but it's something we're looking at for 2.x. |
This is also an issue for anybody trying to use Universal and Angular-CLI |
Is this related to this issue? I have having the issue above where it can't find |
Here is a very clever hack that is currently working as a postinstall script, which changes the webpack config build target to |
@colinskow Very clever indeed, I've implemented it here as well! |
There is also https://github.com/manfredsteyer/ngx-build-plus for another unofficial but recommended solution for customization of the underlying webpack configuration. Closing as there are multiple solutions listed in this thread and this is not something that will be supported directly by the CLI. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.0
node: 7.8.0
os: darwin x64
@angular/animations: 4.0.1
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/flex-layout: 2.0.0-rc.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1
Repro steps.
N/A
The log given by the failure.
N/A
Desired functionality.
In order to target electron-renderer, you currently have to run ng eject and modify the output webpack configuration to update the target.
I propose adding a similar setting to angular-cli.json to specify the intended target.
Mention any other details that might be useful.
Link to webpack target documentation.
The text was updated successfully, but these errors were encountered: