---
title: "Discussion on \"How to obfuscate production builds of your Angular app\" | Hashnode"
description: "Discussion on \"How to obfuscate production builds of your Angular app\". Let's look at how to obfuscate production builds of your Angular web app.\nEDIT: reword article title to avoid confusion :)\nEDIT2: fixed webpack config.\n\nYou will need an Angular project v10 or later to continue.\n\nWe will use javascript-obfuscator for..."
url: "https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to obfuscate production builds of your Angular app](https://blog.suryatejak.in/how-to-obfuscate-production-builds-of-your-angular-app?utm_source=hashnode&utm_medium=feed)

Let's look at how to obfuscate production builds of your Angular web app. EDIT: reword article title to avoid confusion :) EDIT2: fixed webpack config. You will need an Angular project v10 or later to continue. We will use javascript-obfuscator for...

May 12, 2021 · 1 min read · blog.suryatejak.in  
Updated Jun 10, 2021  
Read the article

-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#security](https://hashnode.com/tag/security)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webpack](https://hashnode.com/tag/webpack)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Surya Teja Karra](https://hashnode.com/@shanmukhateja)

@shanmukhateja · Hyderabad, India

  
[View profile](https://hashnode.com/@shanmukhateja)

Doing what I love <3

## Responses 3

Markdown supported · ⌘↵ to post

[Cristian Navarro](https://hashnode.com/@Cris1979)

[Feb 7, 2023](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/63e28ce6cecce1c954ae016b)

i have the follow error

An unhandled exception occurred: Cannot find module 'node:assert'

[Surya Teja Karra](https://hashnode.com/@shanmukhateja)

[Feb 8, 2023](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/63e28ce6cecce1c954ae016b#reply-63e341aa4ef0c3d5fcd41753)

Hi, can you try using a newer version of NodeJS like v16.16.0?

[Cristian Navarro](https://hashnode.com/@Cris1979)

[Feb 8, 2023](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/63e28ce6cecce1c954ae016b#reply-63e387d21207cada0eeac21a)

[Surya Teja Karra](https://hashnode.com/@shanmukhateja) i will try, thanks!!

[Saad Benbouzid](https://hashnode.com/@sbenbouzid)

[Jun 10, 2021](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/60c2273c1e145957d5af5a31)

your webpack.config.js snippet doesn't even compile.

Did you at least try it before writing this blog ??

[Surya Teja Karra](https://hashnode.com/@shanmukhateja)

[Jun 10, 2021](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/60c2273c1e145957d5af5a31#reply-60c229b51e145957d5af5a6c)

Hey, I've fixed the webpack config. It was missing a `}` at the end. Give it a try now :)

[Saad Benbouzid](https://hashnode.com/@sbenbouzid)

[Jun 10, 2021](https://hashnode.com/posts/how-to-obfuscate-production-builds-of-your-angular-app/609be2e400bbde79d86a69f4/comment/60c2273c1e145957d5af5a31#reply-60c23075a25fa357af83e293)

and the trailing ';'

anyway, still not working, gives me this error :

$ ng build --prod --progress=false Options: --version Show version number \[boolean\] -s, --source A path (relative to the working directory) of the `node_modules` folder to process. \[default: "./node\_modules"\] ... --help Show help \[boolean\]

Unknown arguments: use-program-dependencies, useProgramDependencies

An error occurred during the build: Error: NGCC failed. at NgccProcessor.process (C:\\Users\\466367\\AppInternes\\cva\\CVA-front\\src\\main\\webapp\\node\_modules\\@ngtools\\webpack\\src\\ngcc\_processor.js:129:19)

It's ike it's running webpack with unknow arguments...
