Skip to content

Commit

Permalink
support to export as custom element (#119)
Browse files Browse the repository at this point in the history
* add prepare command

* support to export as custom element
  • Loading branch information
bipinkrish authored Sep 30, 2024
1 parent ee0b3af commit 0db50ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/pose_viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"start": "stencil build --dev --watch --serve",
"test": "stencil test --spec --e2e",
"test.watch": "stencil test --spec --e2e --watchAll",
"generate": "stencil generate"
"generate": "stencil generate",
"prepare": "npm run build"
},
"dependencies": {
"@stencil/core": "4.5.0",
Expand Down
4 changes: 4 additions & 0 deletions src/js/pose_viewer/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const config: Config = {
{
type: 'www',
serviceWorker: null // disable service workers
},
{
type: 'dist-custom-elements',
externalRuntime: false
}
]
};

0 comments on commit 0db50ce

Please sign in to comment.