LoginSignup
0
0

More than 3 years have passed since last update.

Vuetifyスクラッチインストール時にiconを使いたい

Last updated at Posted at 2020-03-29

概要

vue-cliなどを使わず、スクラッチインスールした場合、iconがない。

app.ts

Vuetify アイコンを参考に設定する。

以下具体例。

app.ts
import Vue from "vue";
import Vuetify from "vuetify";
import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader
import "vuetify/dist/vuetify.min.css";
import App from "./components/Main.vue";
import router from './router'

Vue.use(Vuetify);
new Vuetify({
  icons: {
    iconfont: 'mdi',
  }
});
new Vue({
  router: router,
  render: h => h(App),
  vuetify: new Vuetify()
}).$mount('#app')

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0