0
after creating an Angular standard application with the ng new aplicacao
and inserted the libraries of Primeng, Bootstrap, Fontawesome the application runs normally through the ng server
.
After rotating the ng build
and move the application up on the server everything works as long as the application runs from the domain root (e.g., www.abc.com.br). If the application runs from a folder (e.g., www.abc.com.br/appteste) and adjustments are made to the paths of . js, the application loads normally but the source files (.Woff, .woff2, .ttf, .svg, .eot) are being searched at the root of the domain with this error 404.
That is, the paths of the files mentioned above are not relative to the folder that the application is running. As everything is "joined" by Webpack I do not know where I should change to modify the path of the files cited above.
Does anyone know how to fix it? I thank everyone who can help.
You can add the source path in your application’s main SCSS file.
– Guilherme Caixeta