Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VuetifyをLaravel-Mixでコンパイルしたい

SAW
October 15, 2019

 VuetifyをLaravel-Mixでコンパイルしたい

VueJS Osaka #3 の発表資料です。

SAW

October 15, 2019
Tweet

More Decks by SAW

Other Decks in Programming

Transcript

  1. 8FCQBDLͷઃఆ vuetify-loader/lib/plugin ΛಡΈࠐΈ 8FCQBDLͷplugins ʹvuetify-loader ͷΠϯελϯεΛ௥Ճ const mix = require(‘laravel-mix’);

    const vuetifyLoader = require(‘vuetify-loader/lib/plugin’); mix.webpackConfig({[ plugins: [ new VuetifyLoader() ], }); webpack.mix.js
  2. 7VFUJGZͷઃఆ 7VFͷϓϥάΠϯͱͯ͠7VFUJGZΛಡΈࠐΈ ΞΠίϯϑΥϯτͷઃఆ import ‘@mdi/font/css/materialdesignicons.css’; import Vue from ‘vue’; import

    Vuetify from ‘vuetify/lib’; Vue.use(Vuetify); export default new Vuetify({ icons: { iconfont: ‘mdi’ } }); resources/js/plugins/vuetify.js