aboutsummaryrefslogtreecommitdiff
path: root/webpack.main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2018-08-16 10:58:56 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2018-08-17 23:06:46 +0200
commitc50e6344f7d9e59a7e28411de8878ecaf9fc58f3 (patch)
tree778aaece533d55ca2a379e81bb986c4e3cb3db6f /webpack.main.js
parent7c23809c2a08ecd75057fdd6aa717f3ba2f2790f (diff)
Add ability to watch / autoreload in development mode
Fixes: https://github.com/jitsi/jitsi-meet-electron/issues/103 Co-authored-by: Akshit Kr Nagpal <akshitkrnagpal@gmail.com>
Diffstat (limited to 'webpack.main.js')
-rw-r--r--webpack.main.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/webpack.main.js b/webpack.main.js
new file mode 100644
index 0000000..d8645ec
--- /dev/null
+++ b/webpack.main.js
@@ -0,0 +1,24 @@
+const path = require('path');
+
+module.exports = {
+ target: 'electron-main',
+ entry: { main: './main.js' },
+ output: {
+ path: path.resolve('./build'),
+ filename: '[name].js'
+ },
+ node: {
+ __dirname: true
+ },
+ externals: [ {
+ 'jitsi-meet-electron-utils': 'require(\'jitsi-meet-electron-utils\')',
+ 'electron-debug': 'require(\'electron-debug\')',
+ 'electron-reload': 'require(\'electron-reload\')'
+ } ],
+ resolve: {
+ modules: [
+ path.resolve('./node_modules')
+ ]
+ }
+};
+