feed-module icon indicating copy to clipboard operation
feed-module copied to clipboard

Integration in other modules

Open yashha opened this issue 6 years ago • 4 comments

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 avatar Oct 04 '19 20:10 yashha

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

yashha avatar Oct 05 '19 20:10 yashha

@yashha Hey 👋

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

TheAlexLichter avatar Oct 08 '19 19:10 TheAlexLichter

@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 avatar Oct 08 '19 19:10 yashha

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.

yashha avatar Oct 08 '19 19:10 yashha