Closed
Description
🚀 Feature request
Ability to configure output path for source maps
Command (mark with an x
)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
When I create a production build using ng build -prod --sourcemaps
,
I would like the ability to configure the output path for the source map files,
So that my source maps will not be deployed with my application.
Describe the solution you'd like
A dedicated --source-map-output-path build command to configure the output path of the source maps only.
The output of the build should continue to go to --output-path=./dist
The source maps should go to the path specified by --source-map-output-path
Describe alternatives you've considered
The current solution is a post-build script that moves the *.map files from the --output-path=./dist directory into a different target directory.