DEV Community


Discussion on: Creating a Vue.js component library: Part VI - Publishing to npm

anujchhabria profile image
Anuj Chhabria

Great article!

I’m intending on using Tailwind CSS to help style my components. But weirdly when I view the components on VuePress they do not reflect Tailwind CSS. I tried to serve the Vue app and check the components - loaded fine.

Any thoughts on what I might be missing out on?

siegerts profile image
siegerts Author • Edited

I'd have to did in a bit as I'm not super familiar with Tailwind. Just make sure that the component bundle style/CSS component are imported alongside your library if the components emit a style bundle.

Something like -

import Vue from 'vue'
import ComponentLibrary from './main.js'
import './path/to/your/style/bundle'


Enter fullscreen mode Exit fullscreen mode