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

Unclear how to install completely #18

Closed
mixmix opened this issue Dec 4, 2019 · 3 comments
Closed

Unclear how to install completely #18

mixmix opened this issue Dec 4, 2019 · 3 comments

Comments

@mixmix
Copy link

mixmix commented Dec 4, 2019

Hi, I have the basic installation in place ... I think? I don't know what I need to do to install the dependencies correctly. I've tried ignoring them, which works, but I get no icons similar to #3

If I try installing them, I'm not really sure how to do that, and there's no clear example code. Here's what I have, and this still leaves me without icons (while mdi icons are working fine with vuetify elsewhere in my app) :

import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader
import Vue from 'vue'
import Vuetify from 'vuetify/lib'

import VueClaw from 'vueclaw'
import VImageInput from 'vuetify-image-input'

Vue.use(Vuetify)

Vue.directive(VueClaw.name, VueClaw)
Vue.component(VImageInput.name, VImageInput)

export default new Vuetify({
  theme: {
    dark: true,
    themes: {
      dark: {
        primary: '#383838',
        secondary: '#A80000',
        accent: '#A70000',
        error: '#ff0000'
      }
    }
  },
  icons: {
    iconfont: 'mdi'
  }
})

I would recommend example code (somewhere) which has some complete setup for registering this to all work

@SeregPie
Copy link
Owner

SeregPie commented Dec 5, 2019

If you are using treeshaking ('vuetify/lib') use this snippet.

import VImageInput from 'vuetify-image-input/a-la-carte';

@SeregPie SeregPie closed this as completed Dec 5, 2019
@mixmix
Copy link
Author

mixmix commented Dec 13, 2019 via email

@SeregPie
Copy link
Owner

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