DEV Community

Discussion on: Build a Web Component library with Stencil and Storybook

Collapse
 
aungkyawhein profile image
Aung Kyaw Hein

This article is very helpful. Thank you so much for this.
There are a few more things to update.
The latest version of copy-webpack-plugin (v7.0.0) will not work. So, I had to downgrade it to v6.2.1.
And stencil build doesn't automatically generate dist/<your-project-name>.js. It will generate dist/<your-project-name>/<your-project-name>.esm.js only. I had to add buildEs5: true in stencil.config.