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

Is there a way to use the module options api inside nuxt.config.js? #343

Open
incompletude opened this issue Aug 20, 2020 · 0 comments
Open

Comments

@incompletude
Copy link

incompletude commented Aug 20, 2020

Instead of:

  ...

  modules: [
    ["vue-scrollto/nuxt", { duration: 0 }],
  ],

  ...

This:

 ...

  modules: [
    "vue-scrollto/nuxt",
  ],

  scrollto: {
    duraiton: 0,
  }

  ...

i import the options from a file and the second form produces more readable code.

@incompletude incompletude changed the title Is there a way to use the options api inside nuxt.config.js? Is there a way to use the module options api inside nuxt.config.js? Aug 20, 2020
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