Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 6f5566b

Browse files
committed
remove extra webpackage
1 parent 0e3526a commit 6f5566b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

shells/electron/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
<div id="container">
4343
<h2 id="waiting">Waiting for a connection from React Native</h2>
4444
</div>
45-
<script src="node/index.js"></script>
46-
<script src="build/panel.js"></script>
45+
<script>
46+
require('babel-core').register({stage: 0});
47+
require('./node');
48+
require('./panel/run');
49+
</script>
4750
</body>
4851
</html>

shells/electron/node/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ socket.onclose = function () {
3434
};
3535

3636
function initialize() {
37-
fs.readFile(path.join(__dirname, '/build/backend.js'), function (err, backendScript) {
37+
fs.readFile(path.join(__dirname, '/../build/backend.js'), function (err, backendScript) {
3838
if (err) {
3939
return console.error('failed to load...', err);
4040
}

shells/electron/webpack.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
module.exports = {
1313
debug: true,
1414
devtool: 'source-map',
15-
// devtool: 'cheap-module-eval-source-map',
1615
entry: {
17-
panel: './panel/run.js',
1816
backend: './backend/run.js',
1917
},
2018
output: {

0 commit comments

Comments
 (0)