- Run
npm install
. - In the
test-module
directory, runnpm pack
. - In the root directory, run
npm install ./test-module/test-module-0.0.1.tgz
. - Run
npm run dev
. - Open page and Dev Tools in the browser.
- Inspect the "My Badge" element. Observe that the element tag name is
<app-badge>
. - Run
npm run build
. - Open the built
index.html
file in a browser. If you have Python 3, you can docd dist && python -m http.server
and navigatelocalhost
at the port specified. - Observe that the badge element is output as
<tagname>
.