egoist / template-electron

Scaffold out an Electron app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after `npm run dist:mac`: Not allowed to load local resource

johnlindquist opened this issue · comments

Not allowed to load local resource: file:///Users/johnlindquist/projects/build-test/dist/mac/Build-test.app/Contents/Resources/app.asar/renderer/index.html

Steps to reproduce:

  1. sao electron build-test
  2. Make sure to select "Y" for webpack option
  3. Run npm run dist:mac
  4. Launch build-test app

hmm yeah you should run npm run build first to bundle renderer to app/renderer, we should add some docs 😅

Oh, whoopsie. I'll add some docs tomorrow :) thanks

haha I do run into this issue sometimes too 😅

Forgot that there's already some doc for this: https://github.com/egoist/template-electron/blob/master/docs/webpack.md

And I just updated the npm scripts a little bit 😄 now the script names make more sense