Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this work on nuxt? #1

Open
benwinding opened this issue Feb 20, 2019 · 1 comment
Open

Will this work on nuxt? #1

benwinding opened this issue Feb 20, 2019 · 1 comment

Comments

@benwinding
Copy link

I can't get this package working on nuxt, are there any special requirements?

@craigharman
Copy link

I would suggest setting it up as a plugin:

plugins/zondicons.js

import Vue from 'vue' import Zondicon from 'vue-zondicons' Vue.component('Zondicon', Zondicon)

nuxt.config.js
plugins: ['~/plugins/zondicons'],

Then use as described in the readme in your vue components:
<Zondicon icon="bolt" class="fill-current text-red " />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants