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 badges
Add a ment  | 

2 Answers 2

Reset to default 5

Ionic 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