does electron nuxt have webpack config for external plugins?
AndhikaR opened this issue · 1 comments
AndhikaR commented
something like vue electron external settings here
currently integrating pos thermal printer, but the path currently off, found out the fix you need settings something like my link in vue config, wonder can we do that in here too?
Minoricew commented
The answer is Yes. Electron-nuxt does have a Webpack config for external plugins, but the config file isn't external. The config is in ~/.electron-nuxt/index.js
, near line 39. There is a variable called "webpackConfig", which contains a Webpack config instance. You can change the Webpack config by editing this var.
Or, you could modify the code in index.js
to dynamically generate the webpackConfig
variable’s content from an external file, if necessary.