admin管理员组文章数量:1399347
Do anyone know how to bundling the web ponent created with stencil using webpack. I have multiple stencil ponents and need to create a bundle so that i can use it in other projects.
Do anyone know how to bundling the web ponent created with stencil using webpack. I have multiple stencil ponents and need to create a bundle so that i can use it in other projects.
Share Improve this question asked Sep 3, 2019 at 9:23 sijo josesijo jose 3273 silver badges12 bronze badges2 Answers
Reset to default 5Ionic has developed a StencilPlugin for webpack, which allows to easily import ponents using the webpack bundler.
You may also be interested in this excellent article which explains in more details how to use the plugin.
The stencil build
mand normally bundles everything for you into the ponents.js
file (or whatever your stencil config's namespace
value is). So you shouldn't need to create your own bundle. If you are finding problems with the Stencil-built bundle, maybe have a look at https://stenciljs./docs/module-bundling.
本文标签: javascriptBundling stencil component with webpackStack Overflow
版权声明:本文标题:javascript - Bundling stencil component with webpack - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744210141a2595378.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论