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

Be33a704f251c77162896ac5ba03e9ac?s=47 SAW
October 15, 2019

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

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

Be33a704f251c77162896ac5ba03e9ac?s=128

SAW

October 15, 2019
Tweet

Transcript

  1. 5.
  2. 9.

    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
  3. 10.

    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