Fix/next6 (#19)
Fix/next6 (#19)

* Fix dist build with next@6

Next@6 creates main.js file under _next/static/commons folder. Therefore replacement paths match twice.

* Make the check for which paths to replace more stringent and get it to
work properly on windows

Fixes: https://github.com/leo/electron-next/issues/17

* Removed: useless `parse` import from `path` module

leo/electron-next