ionic-team / stencil-component-starter

Minimal starter project for building shareable web components with Stencil
https://github.com/ionic-team/stencil
MIT License
278 stars 128 forks source link

stencil.assetsRoot property proposal #96

Open lancedikson opened 3 years ago

lancedikson commented 3 years ago

The stencil.assetsRoot property is supposed to standardize the way of working with the assets and make integrations of libraries easier for the users of libraries. For now, there are a lot of discussions going on around this topic. I've also encountered this issue of integration lib's assets with the app, and have come up with a feeling that it would have been so much easier, if it was standardized more strictly, so that any standardized JSON file (in this case package.json) would contain a pointer to the assets root.

It's supposed to be something, that maintainers edit, so they can go with basically any other name for the folder other than assets.

lancedikson commented 3 years ago

The PR is quite optimistic and more of an RFC :) I believe, there is a lot more other work that has to be done for this to work out — update the docs, maybe come up with specific code that creates a root folder for the assets. But the point is to propose an idea for now.