Skip to content

Commit

Permalink
[fix] 최초 빌드시 mainRouter 가 electron/main 에 없어서 웹팩빌드 안되던 문제 수정
Browse files Browse the repository at this point in the history
- mainRouter 를 external 로 뺌 : 애초에 번들에 포함될 이유가 없음
  • Loading branch information
extracold1209 authored and entrydev committed Mar 27, 2020
1 parent d611d1b commit 9c3f065
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack/webpack.electron.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = merge({
filename: 'index.bundle.js',
},
externals: [
'../mainRouter.build',
function(requestDirectoryPath, requestModuleName, callback) {
// 상대경로로 표기된 모듈의 경우는 번들포함, 외에는 전부 commonjs 모듈
const moduleName = path.basename(requestModuleName);
Expand Down

0 comments on commit 9c3f065

Please sign in to comment.