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

[Improvement] Add 'outputPath' option in builder "@angular-devkit/build-angular:dev-server" schema #10885

Closed
jmesa-sistel opened this issue May 16, 2018 · 3 comments
Labels
feature Issue that requests a new feature

Comments

@jmesa-sistel
Copy link

Versions

Angular CLI: 6.0.1
Node: 8.11.1
OS: win32 x64
Angular: 6.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.1
@angular-devkit/build-angular     0.6.1
@angular-devkit/build-optimizer   0.6.1
@angular-devkit/core              0.6.1
@angular-devkit/schematics        0.6.1
@angular/cli                      6.0.1
@angular/pwa                      0.6.1
@ngtools/webpack                  6.0.1
@schematics/angular               0.6.1
@schematics/update                0.6.1
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Desired behavior

Add 'outputPath' option in builder "@angular-devkit/build-angular:dev-server" schema, so if this field is used the files will be written.
So we can debug with devserver and at the same time check it in a tomcat or another backend.

Mention any other details that might be useful (optional)

I have been using 'write-file-webpack-plugin' ejecting the webpack configuration in previous versions.

@Brocco Brocco added the feature Issue that requests a new feature label May 16, 2018
@alan-agius4
Copy link
Collaborator

@jmesa-sistel thanks for open the issue. however we should be careful how we increase the scope of the CLI because each new feature means new code to maintain and fix issues in.

In this particular case, you can use https://github.com/manfredsteyer/ngx-build-plus to add addition plugins in the webpack pipeline.

Thanks

@rodries
Copy link

rodries commented Feb 15, 2019

@alan-agius4
I already using that addition, also I fix the bug to be able to use write-file-webpack-plugin, but I think the only thing you have to do is set writeToDisk in devServer.
Anyway maybe writeToDisk will be removed in webpack 5 because of this comments.
I had to set:

output: {
        .....
        futureEmitAssets: false   
    },

to get it working (check pull request)

Edit: I'm jmesa, I forgot to change to my job account

@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 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

4 participants