Recently, I installed the Angular CLI
(@angular/cli 9.0.1). My goal was to create a new Angular Element, package it, and then integrate it into another application.
Following several blog tutorials, I found that they all mentioned the final step of creating a single JS file from the generated files in the dist/ folder. One example is:
The process involved using the cat command to concatenate the runtime.js, polyfills.js, scripts.js, and main.js files from the dist/angular-app directory into an angularapp.js file within the preview folder.
When I ran
ng build angular-app --prod --output-hashing=none
, I noticed that it generated files with names such as:
- main-es5.js
- main-es2015.js
- polyfills-es5.js
- polyfills-es2015.js
- runtime-es5.js
- runtime-es2015.js
I tried modifying every instance of es5 and es2015 to es6 in the files, but it still resulted in the same es5 and es2015 file names. What could I be missing or doing incorrectly here?