Can we add a webpack plugin inside a nuxt module?
[issue link]// inside nuxt.config.js, we can extend & add
{
...
build: {
extend(config) {
// extend webpack config
},
plugins: [
// add webpack plugins
]
}
...
}
// my-module.js
module.exports = function (moduleOptions) {
this.extendBuild(config => {
...
})
// can we add webpack plugins here somehow?
}