Just build using ng build as usual. This should create a dist folder with
some.js files. Namely:
main - XXXXX.js;
polyfills - YYYYY.js;Remove the hash ids (XXXX/YYYY) from the file names and move them to the test-page folder as main.js and polyfills.js.
The index.html file already registers the js files correctly at the end of the
body tag.
Serve the test-page folder using any web server such as:
-
live-server vscode extension(RECOMMENDED: just install extension and right click theindex.htmlinsidetest-pageand selectOpen With Live Server -
http-server: runnpm install -g http-serverthencdintotest-pagefolder, and runnpx http-server.
See the results in the browser!!!
ps: I am a Keanu-Reeves Fan :)