Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndhikaR opened this issue May 10, 2022 · 1 comment
Open

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

AndhikaR opened this issue May 10, 2022 · 1 comment

Comments

@AndhikaR
Copy link

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?

@MinoriceOwO
Copy link

MinoriceOwO commented Apr 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants