Create a Vue.js component library (Part 2)

Olivier Picault
ITNEXT
Published in
4 min readOct 21, 2019

--

If you followed the first part of this tutorial you should now have:

  • The basic library with a DummyButton.vue component
  • The app that imports and uses this component

As said at the end of the first part I had components relying on a Vuex store. I thus had several questions:

  • How to export a Vuex store ?
  • What would happened if my library had variable named A and the app also had one ?

The library

--

--