🐞 Bug report
Command (mark with an x)
- [ ] new
- [X] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
No
Description
When an Angular CLI Project is located under a folder with a space in the name, the assets are missing in the production bundles.
A common case is the Programm Files-Directory in windows systems.
🔬 Minimal Reproduction
- Create a new Angular application under a folder with a space in the name.
- Add some assets to the application
- Execute
ng build --prod
The assets folder is missing in the created bundle.
🔥 Exception or Error
Unfortunately there is no Exception/Error.
🌍 Your Environment
Angular CLI: 8.0.3
Node: 12.4.0
OS: win32 x64
Angular: 8.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.3
@angular-devkit/build-angular 0.800.3
@angular-devkit/build-optimizer 0.800.3
@angular-devkit/build-webpack 0.800.3
@angular-devkit/core 8.0.4
@angular-devkit/schematics 8.0.4
@angular/cdk 8.0.1
@angular/cli 8.0.3
@angular/flex-layout 8.0.0-beta.26
@angular/material 8.0.1
@angular/pwa 0.800.4
@ngtools/webpack 8.0.3
@schematics/angular 8.0.4
@schematics/update 0.800.3
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Anything else relevant?
There is an existing issue related to this, but it has been closed by the OP, as he found a workaround by using a different folder.
This does not seem to be the right solution for this, as it can cause wrong production bundles without showing an error or even a warning.
Ideally, the CLI should be able to handle folders with space in the name correctly.
If that's not possible, it should abort the build and show an error.
🐞 Bug report
Command (mark with an
x)Is this a regression?
No
Description
When an Angular CLI Project is located under a folder with a space in the name, the assets are missing in the production bundles.
A common case is the
Programm Files-Directory in windows systems.🔬 Minimal Reproduction
ng build --prodThe
assetsfolder is missing in the created bundle.🔥 Exception or Error
Unfortunately there is no Exception/Error.
🌍 Your Environment
Anything else relevant?
There is an existing issue related to this, but it has been closed by the OP, as he found a workaround by using a different folder.
This does not seem to be the right solution for this, as it can cause wrong production bundles without showing an error or even a warning.
Ideally, the CLI should be able to handle folders with space in the name correctly.
If that's not possible, it should abort the build and show an error.