building a npm lib package (using vue-cli-service) containing a VueJS component library that use images
the package dist/img folder contains the images
importing the npm lib package in an app
when building the app (using vue-cli-service), there is no images in the dist/ folder of the app
What is expected?
That the resources from the NPM lib are added to the app assets
What is actually happening?
The resources are properly added to the NPM lib dist/img folder, but when the NPM lib is installed in an app (eg yarn add ../my-ui-lib), and the project is built, the images do not appear in the dist/ folder of the app
What is the way to have assets from an NPM lib containing a VueJS component with assets (for instance images) to be copied in the app build dir from which it is used?
Version
5.0.4
Environment info
Steps to reproduce
dist/img
folder contains the imagesdist/
folder of the appWhat is expected?
That the resources from the NPM lib are added to the app assets
What is actually happening?
The resources are properly added to the NPM lib
dist/img
folder, but when the NPM lib is installed in an app (egyarn add ../my-ui-lib
), and the project is built, the images do not appear in thedist/
folder of the appWhat is the way to have assets from an NPM lib containing a VueJS component with assets (for instance images) to be copied in the app build dir from which it is used?