For the first time, I am releasing a Vue component on NPM and everything seems to be in order, except for one issue - the CSS is missing. While it functions perfectly when tested locally, after installing the npm package in a test project and importing the component, the CSS does not display.
To replicate the problem, follow these steps:
- Start a new Vue project
- Execute
npm install elementable-vue
- Utilize this template for App.vue: https://github.com/sandermaas/elementable-vue/blob/master/src/App.vue
- Modify the import statement (in the template) to
import ElemenTable from 'elementable-vue'
- Run 'npm run serve'
The source code can be viewed at https://github.com/sandermaas/elementable-vue
I'm struggling to identify the reason behind this issue, so any assistance would be greatly appreciated.