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

How to use in nuxt.js project? #74

Closed
cypressious opened this issue Feb 13, 2019 · 1 comment
Closed

How to use in nuxt.js project? #74

cypressious opened this issue Feb 13, 2019 · 1 comment

Comments

@cypressious
Copy link

I'm trying to use the plugin in a nuxt.js project, but I can't get it to work.

In my nuxt.config.js, I've added

import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';

const smp = new SpeedMeasurePlugin();

module.exports = {
    ...,
    build: {
        ...,
        extend(config, { isDev }) {
            if (isDev) {
                return smp.wrap(config);
            }
        }
    },
    ...
}

But when running nuxt from the command line, SMP doesn't print anything. Any tips?

@cypressious
Copy link
Author

Nvm, that seems to be exactly the way to make it work with nuxt. I somehow just missed the output.

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

1 participant