michalzaq12 / electron-nuxt

⚡ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools
https://michalzaq12.github.io/electron-nuxt
MIT License
719 stars 78 forks source link

does electron nuxt have webpack config for external plugins? #881

Open AndhikaR opened 2 years ago

AndhikaR commented 2 years ago

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 5 months ago

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.