๋ฐ์ํ
MDI ์ค์น
$ yarn add @mdi/font -D
// OR
$ npm install @mdi/font -D
๐ Vue
// plugins/vuetify.js
import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
Vue.use(Vuetify)
export default new Vuetify({
icons: {
iconfont: 'mdi', // default - only for display purposes
},
})
๐ Nuxt
default ๋ก iconfont ๊ฐ mdi ๋ก ๋์ด ์๊ธฐ ๋๋ฌธ์ css ํ์ผ๋ง ์ถ๊ฐํด ์ฃผ๋ฉด ๋๋ค.
// nuxt.config.js
export default {
css: [
'@mdi/font/css/materialdesignicons.css',
],
}
์ฐธ๊ณ
๋ฐ์ํ
'WEB > Vue.js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Vue.js] Custom Directive : Outside Click Event (0) | 2021.01.13 |
---|---|
[Vue.js] Custom Directive (0) | 2021.01.13 |
[Vuejs][VScode] 'v-slot' directive doesn't support any modifier. (0) | 2020.12.10 |
[Vuejs] v-html (0) | 2020.12.04 |
[Nuxtjs] ๋ฐฐํฌ ํ ๋ console.log ํ ๋ฒ์ ์ง์ฐ๋ ๋ฐฉ๋ฒ (0) | 2020.08.20 |