Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Can't make it work with electron #13

Open
pronebird opened this issue Feb 1, 2017 · 0 comments
Open

Can't make it work with electron #13

pronebird opened this issue Feb 1, 2017 · 0 comments

Comments

@pronebird
Copy link

pronebird commented Feb 1, 2017

Hi,

I tried to install electron-hot-loader into my react-redux boilerplate running with babel but I am not able to make live reload work.

I put the following lines in my main.js included from index.html.

const rootElement = document.querySelector(document.currentScript.getAttribute('data-container'));
const electronHot = require('electron-hot-loader');

electronHot.install({ higherOrderFunctions: ['connect'] });
electronHot.watchJsx([ 'app/**/*.js' ]);
electronHot.watchCss([ 'app/**/*.css' ]);

ReactDOM.render(
  <Provider store={store}>
    <Router history={routerHistory} routes={routes} />
  </Provider>,
  rootElement
);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant