After creating a standard Angular application with ng new aplicacao
and inserted into the PrimeNG, Bootstrap, Fontawesome libraries the application normally runs through ng server
.
After running ng build
and uploading the application to the server everything works as long as the application runs from the root of the domain (eg www.abc.com.br). If the application runs from a folder (ex: www.abc.com.br/appteste) and made the settings in the .js paths, the application normally loads but the files referring to the sources (.woff, .woff2, .ttf, .svg, .eot) are being searched at the root of the domain with this presenting error 404.
That is, the paths of the files mentioned above do not relate to the folder that the application is running. As everything is "joined" by Webpack I do not know where to change to change the path of the files mentioned above.
Does anyone know how to fix it? Thank you in advance for all your help.