nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

Nuxt 2.0 upgrade / issues

Open sts-ryan-holton opened this issue 7 years ago • 3 comments

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

sts-ryan-holton avatar Sep 26 '18 14:09 sts-ryan-holton

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

husayt avatar Sep 28 '18 22:09 husayt

The key change is

  build: {
    extractCSS: true,
    transpile: [/^vuetify/],
    babel: {
      plugins: [
        [
          "transform-imports",
          {
            vuetify: {
              transform: "vuetify/es5/components/${member}",
              preventFullImport: true
            }
          }
        ]
      ]
    },

husayt avatar Sep 28 '18 22:09 husayt

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

/cc @husayt

sts-ryan-holton avatar Sep 29 '18 18:09 sts-ryan-holton