0

I am working on an angular project for this single spa micro frontend application,

{
      "imports": {
        "app1": "http://localhost:4201/main.js",
       "login": "http://localhost:4204/main.js",
      }
}

I have deployed my app1 on cloud but on every build a different main.js like this mainedsf24r43.js gets generated, hence I am getting an error :

open() "/usr/share/nginx/html/main.js" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /main.js HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:4200/"

Any solution on how we can overcome this issue.

Akancha Singh
  • 83
  • 1
  • 13
  • I dont know what you are trying to accomplish, but anyway, to remove hashing, in angular.json set "outputHashing" to "none" – Ayyash Jun 09 '21 at 09:47

1 Answers1

2

If you are using angular-cli, simply set projects.<projectName>.architect.build.configurations.production.outputHashing to "none" in your angular.json

nickbullock
  • 6,424
  • 9
  • 27