vuetifyjs / nuxt

Nuxt.js + Vuetify.js starter project template.
MIT License
306 stars 109 forks source link

Nuxt 2.1 & vuetify 1.2.6 issue #61

Closed kelvin2go closed 5 years ago

kelvin2go commented 5 years ago

package.json

  "nuxt": "^2.1.0",
    "nuxt-fontawesome": "^0.3.0",
    "nuxt-i18n": "^5.3.0",
    "vuetify": "^1.2.6"

plugins/vuetify.js

import Vue from 'vue'
import Vuetify from 'vuetify'

Vue.use(Vuetify, {
  theme: {
    primary: '#012F67',
    secondary: '#024EA2',
    accent: '#012F67',
    error: '#860100',
    action: '#23DB2A'
  },
  options: {
    minifyTheme: function (css) {
      return process.env.NODE_ENV === 'production'
        ? css.replace(/[\s|\r\n|\r|\n]/g, '')
        : css
    }
  }
})

the theme is not generate / `color="primary" is not working

when i use nuxt 1.x / vuetify (before upgrade nuxt 2.1 / vuetfiy 1.2.6), there has a <style data-n-head="true" id="vuetify-theme-stylesheet" type="text/css"> now the theme seem missing

kelvin2go commented 5 years ago

i have using the new version of nuxt/vuetify is working with theme now.