Closed jsgv closed 7 years ago
In short, you need to generate a separate webpack bundle and HTML file for each window. This is kind of clunky and involves a lot of duplication with the current setup.
Try something like this:
external.js
file next to main.js
main.js
, but referencing External.vue
instead of Home.vue
.external
entry point to the webpack.dev-main.confHtmlWebpackPlugin
to generate external.html
to the webpack.dev-main.conf
exclude
the app
bundle from external.html
and vise versa.It worked. Thank you!
I am trying to create a second Window with a different html file than
main.html
. I am successfully creating the window and using the newexternal.html
template, but am unsure about how to use its own vue template.Folder structure
background.js
Secondary window is loading
external.html
file correctly, but I'm unsure of how to have it load theExternal.vue
file.The secondary window is looking for the
#app
element.main.js