diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2020-04-28 12:34:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 18:34:05 +0200 |
| commit | cb2b4e3522cb7f426ba5ad3e68deb9e6ccc581ec (patch) | |
| tree | 2a2f38823c3c9f0b5439ce2aa7c9040299109292 /electron/src/index.ejs | |
| parent | eb526927e16954390d06929535d6f5c3766b5f6c (diff) | |
electron simulator (#531)
Diffstat (limited to 'electron/src/index.ejs')
| -rw-r--r-- | electron/src/index.ejs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/electron/src/index.ejs b/electron/src/index.ejs new file mode 100644 index 00000000..e1a77ad7 --- /dev/null +++ b/electron/src/index.ejs @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>inkstitch-gui</title> + <% if (htmlWebpackPlugin.options.nodeModules) { %> + <!-- Add `node_modules/` to global paths so `require` works properly in development --> + <script> + require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>') + </script> + <% } %> + </head> + <body> + <div id="app"></div> + <!-- Set `__static` path to static files in production --> + <% if (!process.browser) { %> + <script> + if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\') + </script> + <% } %> + + <!-- webpack builds are automatically injected --> + </body> +</html> |
