Skip to content

Disable browser tools with webpack build #12393

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

Closed
no-more opened this issue Sep 28, 2018 · 3 comments
Closed

Disable browser tools with webpack build #12393

no-more opened this issue Sep 28, 2018 · 3 comments
Labels
area: @angular-devkit/build-angular feature Issue that requests a new feature
Milestone

Comments

@no-more
Copy link

no-more commented Sep 28, 2018

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request

Command (mark with an x)

- [ ] new
- [X] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node: v8.9.4
npm: 6.4.0

Angular CLI: 6.2.1
Node: 8.9.4
OS: win32 x64
Angular: 6.1.4
... animations, common, compiler, core, forms, http
... platform-browser, platform-browser-dynamic, platform-server
... router

Package Version

@angular-devkit/architect 0.8.0
@angular-devkit/build-angular 0.8.0
@angular-devkit/build-ng-packagr 0.8.0
@angular-devkit/build-optimizer 0.8.0
@angular-devkit/build-webpack 0.8.3
@angular-devkit/core 0.8.0
@angular-devkit/schematics 0.8.1
@angular/cdk 6.4.6
@angular/cli 6.2.1
@angular/compiler-cli 6.1.0
@angular/flex-layout 6.0.0-beta.17
@angular/language-service 6.1.0
@angular/material 6.4.6
@angular/material-moment-adapter 6.4.6
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.2.0
@schematics/angular 0.8.1
@schematics/update 0.8.1
ng-packagr 4.1.0
rxjs 6.2.2
typescript 2.9.2
webpack 4.19.0

Repro steps

The log given by the failure

Desired functionality

I'm trying to build a monorepo which contains all the code for frontend(angular) and backend (node + typescript). I'm trying to switch from a all webpack build to a all angular-cli build (with "@angular-devkit/build-webpack:webpack" for backend builds)
But it seems even if using custom webpack config, the cli still applies some browser specific build step and I have the following errors:
Module not found: Error: Can't resolve 'utf-8-validate'
Module not found: Error: Can't resolve 'bufferutil'
It would be great to be able to completely disable this in order to make the build process platform independent.

Mention any other details that might be useful

@alan-agius4 alan-agius4 added feature Issue that requests a new feature area: @angular-devkit/build-angular labels Oct 1, 2018
@ngbot ngbot bot added this to the Backlog milestone Oct 1, 2018
@mgechev
Copy link
Member

mgechev commented Feb 13, 2019

Hey @no-more, this is outside the scope of the CLI but I'd strongly encourage you to follow the architect API that we're working on #13463 as well as ngx-build-plus. Both provide extensibility points that you can use to introduce this extra piece of functionality.

@mgechev mgechev closed this as completed Feb 13, 2019
@no-more
Copy link
Author

no-more commented Feb 13, 2019

Thanks, I'll keep an eye on this.

@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
area: @angular-devkit/build-angular feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants