Comments (2)
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:
- Create an
external.js
file next tomain.js
- Should basically be a copy of
main.js
, but referencingExternal.vue
instead ofHome.vue
.
- Should basically be a copy of
- Add a second
external
entry point to the webpack.dev-main.conf - Add a second
HtmlWebpackPlugin
to generateexternal.html
to the webpack.dev-main.conf- Be sure to
exclude
theapp
bundle fromexternal.html
and vise versa.
- Be sure to
- Do the same thing in webpack.prod.conf (yea, I'm sorry...)
from electron-boilerplate-vue.
It worked. Thank you!
from electron-boilerplate-vue.
Related Issues (20)
- Package icons? HOT 2
- Accessing app node_modules folder from html HOT 2
- Not compiling background.js via babel on Windows (Unexpected token Import)
- Linting HOT 1
- this._init is not a function HOT 3
- I keep getting a 'node-gyp rebuild' error message when I run npm install HOT 4
- external css files are not compiled? HOT 1
- webpack+sqlite3 not working HOT 3
- missing package
- update to Vue.js version 2.0 HOT 5
- in windows x86 platform i get an error when run npm start
- Vue 2 - Styles not rendering in app HOT 4
- Clone electron-boilerplate-vue.git doesn't include all files HOT 1
- Bug fixes, updates, Vue 2, etc. HOT 1
- Chrome Dev-Tools doesn't work properly
- could u update the boilerplate to vue2
- strict or stiff? HOT 1
- The app provided is not a valid electron app
- image url in less file not working for production
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-boilerplate-vue.