I need my file firebase-messaging-sw.ts compiled to firebase-messaging-sw.js to be accessible from the root.
I already created firebase-messaging-sw.ts in the src folder. But that doesn't work. I also added the .js file in angular.json.
So what I want is to make a ts file and compile it to js. But I don't know how to do it in Angular.
angular.json
"assets": [
"src/favicon.ico",
"src/assets",
"src/firebase-messaging-sw.js"