Skip to content

Commit

Permalink
[1.9.4] 개발상태에서 hardwareElement 의 이미지를 __dirname 기준으로 찾기로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
extracold1209 authored and entrydev committed Mar 4, 2020
1 parent ac3eec8 commit 39152af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/preload/rendererRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RendererRouter {
if (asarIndex > -1) {
return path.join(app.getAppPath(), '..', 'modules');
} else {
return path.resolve(app.getAppPath(), 'modules');
return path.join(__dirname, '..', '..', 'modules');
}
}

Expand Down
3 changes: 3 additions & 0 deletions webpack/webpack.preload.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ module.exports = merge({
path: preloadDirectoryPath,
filename: 'preload.bundle.js',
},
node: {
__dirname: false,
},
externals: [
function(directory, moduleName, callback) {
if (/\/lang$/.test(directory)) {
Expand Down

0 comments on commit 39152af

Please sign in to comment.