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:
- sao electron build-test
- Make sure to select "Y" for webpack option
- Run
npm run dist:mac
- 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