Angular-cli: ng build disable build *.map and *.gz files

Created on 10 Jan 2017  路  4Comments  路  Source: angular/angular-cli

How to disable build *.map and *.gz file when i runng build --prod?

Most helpful comment

You can use --no-sourcemap to disable sourcemaps. Gzipped files can not be turned off.

All 4 comments

You can use --no-sourcemap to disable sourcemaps. Gzipped files can not be turned off.

do we need .map files on server?

We need .map files to transpose js in ts in your browser.

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._

Was this page helpful?
0 / 5 - 0 ratings