Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxtjs support #1

Open
rafaesc opened this issue Feb 7, 2018 · 6 comments
Open

Nuxtjs support #1

rafaesc opened this issue Feb 7, 2018 · 6 comments

Comments

@rafaesc
Copy link
Member

rafaesc commented Feb 7, 2018

Add support to nuxtjs

@cannap
Copy link

cannap commented Feb 24, 2018

just add Vue.config.performance = process.env.NODE_ENV !== 'production' this via a plugin

@ajitid
Copy link

ajitid commented May 13, 2018

@rafaesc any update on this?

@cesasol
Copy link

cesasol commented Jun 30, 2018

Just as @cannap pointed out. add a plugin, here is a full example:

plugins/performance.js

import Vue from 'vue'

Vue.config.performance = process.env.NODE_ENV !== 'production'

and in nuxt.config.js

export.default = {
...
  plugins: ['~/plugins/performance'],
}

@mahapo
Copy link

mahapo commented Jan 16, 2019

@cesasol This not works.
Vue.config.performance should set immediately after loading Vue and before new Vue

@mahapo
Copy link

mahapo commented Jan 16, 2019

I found the solution
add this to the nuxt.config.js file

 vue: {
    config: {
        performance: true
    }
 }

https://nuxtjs.org/api/configuration-vue-config/

@Jekins
Copy link

Jekins commented Mar 5, 2019

"No measures found"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants