Skip to content

Commit

Permalink
fix: typescript-webpack template config
Browse files Browse the repository at this point in the history
  • Loading branch information
georgexu99 committed Oct 25, 2022
1 parent 362099a commit 53355e1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class TypeScriptWebpackTemplate extends BaseTemplate {

packageJSON.main = '.webpack/main';
packageJSON.config.forge.plugins = packageJSON.config.forge.plugins || [];
packageJSON.config.forge.plugins.push([
'@electron-forge/plugin-webpack',
{
packageJSON.config.forge.plugins.push({
name: '@electron-forge/plugin-webpack',
config: {
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
Expand All @@ -33,7 +33,7 @@ class TypeScriptWebpackTemplate extends BaseTemplate {
],
},
},
]);
});

// Configure scripts for TS template
packageJSON.scripts.lint = 'eslint --ext .ts,.tsx .';
Expand Down

0 comments on commit 53355e1

Please sign in to comment.