ntnyq / vuepress-plugin-social-share

:mega: Social sharing plugin for VuePress
https://social-share.ntnyq.com
MIT License
32 stars 6 forks source link

Fixing config example #39

Closed spekulatius closed 3 years ago

spekulatius commented 3 years ago

Hey @ntnyq

I had to adjust the config like this (fixed example) to make it work.

Cheers, Peter

ntnyq commented 3 years ago

Both babel-style and object-style are supported by VuePress.

Didn't babel-style plugin option work for you?

spekulatius commented 3 years ago

That's a good question - I'm not sure. My site is more or less a standard VuePress with a few plugins. Maybe it fails if you used already a different way to configure it?

ntnyq commented 3 years ago

Ya. Babel style plugin option is wrapped in an array rather than an object which is for object style.

That means you can use only one plugin option style.

spekulatius commented 3 years ago

Ah okay, then this is the issue as it looks. I've followed style I've seen in the docs and plugin installation examples on GitHub - and ran into a conflict here. If we merge this, the issue would be resolved for most people following I think. If not, that's fine too - at least I learn the reasons behind it