vuetifyjs / nuxt

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

Nuxt 2.0 upgrade / issues #54

Open sts-ryan-holton opened 5 years ago

sts-ryan-holton commented 5 years ago

Nuxt 2.0 has been released, I had some issues upgrading to this, when would Nuxt 2.0 be supported for this template?

husayt commented 5 years ago

Here is a working nuxt2 and vuetify project. https://github.com/p1pchenk0/nuxt-vuetify-ala-carte

husayt commented 5 years ago

The key change is

  build: {
    extractCSS: true,
    transpile: [/^vuetify/],
    babel: {
      plugins: [
        [
          "transform-imports",
          {
            vuetify: {
              transform: "vuetify/es5/components/${member}",
              preventFullImport: true
            }
          }
        ]
      ]
    },
sts-ryan-holton commented 5 years ago

Thanks for this! It's working now! Should probably consider adding this to the README.md?

/cc @husayt