nuxt-community / legacy-modules

MIT License
1.28k stars 158 forks source link

feat(yandex-metrika): support `yandexMetrika` option #375

Closed PickRelated closed 3 years ago

PickRelated commented 3 years ago

PR is pretty self-explanatory. It adds option to specify config in a separate key rather than in module declaration. Before

{
  modules: [
    [
      '@nuxtjs/yandex-metrika',
      {
        id: 'XXXXXX',
      },
    ],
  ]
}

After

{
  modules: ['@nuxtjs/yandex-metrika'],
  yandexMetrika: {
    id: 'XXXXXX',
  },
}
PickRelated commented 3 years ago

@pi0 Is there a chance to publish the new version on npm?

pi0 commented 3 years ago

@PickRelated 1.3.0 released. Sorry for delay