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

Apply bundler for renderer process using webpack #3

Merged
merged 2 commits into from Oct 16, 2018

Conversation

@HyunmoAhn
Copy link
Owner

commented Oct 16, 2018

Purpose

To using library in renderer process like this

Speciality for electron

  • import for webpack-dev-server

    • For hot-load in renderer process that is builded by webpack, must import in html above like code.
    • Because webpack-dev-server doen't make html. Must use page/timer.html. It will be change when production build.
  • run two process for main and renderer

    • We need to run two process. one is main process using node-mon and another is renderer process using webpack-dev-server. If doesn't use spwan and before method, you must run two terminal and two command. Above code make run once.
  • It may be need to build on production [1]. [2] production build setting will config after the make timer feature.

Todo after

Just develop feature of timer!

HyunmoAhn added 2 commits Oct 16, 2018
Separate page(renderer code) and main process code
It will run different way. main is run electorn and page is run webpack.
Bundling Setting in renderer process.
may be need to some webpack experience.

@HyunmoAhn HyunmoAhn changed the title Setting/bundler webpack Apply bundler for renderer process using webpack Oct 16, 2018

@HyunmoAhn HyunmoAhn merged commit f5f4078 into master Oct 16, 2018

@HyunmoAhn HyunmoAhn added the Reference label Oct 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.