0
votes

This is the first time I am publishing a Vue component to NPM and everything works fine, except the fact that the CSS is not present. It all works as expected when I run it locally but if I create a test project, install the npm package and import the component there is no CSS.

Steps to reproduce:

You can check out the source code on https://github.com/sandermaas/elementable-vue

I can't figure out why this is not working so any help is very much appreciated.

1

1 Answers

1
votes

You need to import your css as well in app.vue of your newly created project:

<style>
  @import '~elementable-vue/dist/elementable-vue.css';
</style>