You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
I am not sure why it works this way, but unpkg property in package.json in out of the box solution for component (didn't check ootb for app) serves the component .js file. And this file is requested by .html, by docs by linking to the specific dist/file.js:
Put a script tag similar to this
<script src='https://unpkg.com/my-name@0.0.1/dist/myname.js'></script>
in the head of your index.html
Expected behavior:
In .html I would like to link without the dist/file.js
Stencil version:
I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
I am not sure why it works this way, but unpkg property in package.json in out of the box solution for component (didn't check ootb for app) serves the component .js file. And this file is requested by .html, by docs by linking to the specific dist/file.js:
Expected behavior:
<script src='https://unpkg.com/my-name@0.0.1'></script>In .html I would like to link without the dist/file.js
as it makes more sense while using the packacke.json unpkg property
Related code:
This is caused by the code in ootb dist/my-component/my-component.js and its url construct.
The text was updated successfully, but these errors were encountered: