nuxt-community / feed-module

Everyone deserves RSS, ATOM and JSON feeds!
MIT License
226 stars 36 forks source link

Integration in other modules #62

Open yashha opened 4 years ago

yashha commented 4 years ago

I would really like to integrate this module into wp-nuxt.

I can't get it working using this.requiredModule:

this.requireModule(['@nuxtjs/feed', Object.assign({}, options.feed, {
})])

Is this something that will be soon integrated or would that be something you would welcome a pr?

yashha commented 4 years ago

This is for now my solution. https://github.com/yashha/wp-nuxt/pull/70/files

manniL commented 4 years ago

@yashha Hey 👋

requireModule should work fine 🤔 Example: https://github.com/nuxt-community/nuxt-tailwindcss/blob/master/lib/module.js#L42

yashha commented 4 years ago

@manniL it works fine, but I couldn't pass the required array. In Feed Module you have to provide an array or an factory object. I got an error when I provided an object as far as I remember.

yashha commented 4 years ago

Here the code to reproduce: https://glitch.com/~seen-hippopotamus

I want to configure the module the module without using the nuxt.config.js in my module.