Created
June 13, 2019 13:30
-
-
Save d0peCode/93e23040c4c89f1216bd08f76ccfe9a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"plugins": [ | |
[ | |
"@electron-forge/plugin-webpack", | |
{ | |
"mainConfig": "./webpack.main.config.js", | |
"renderer": { | |
"config": "./webpack.renderer.config.js", | |
"entryPoints": [ | |
{ | |
"html": "./src/renderer/html/index.html", | |
"js": "./src/renderer/js/index.js", | |
"name": "main_window" | |
} | |
] | |
} | |
} | |
] | |
] | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
/** | |
* This is the main entry point for your application, it's the first file | |
* that runs in the main process. | |
*/ | |
entry: './src/main.js', | |
// Put your normal webpack config below here | |
module: { | |
rules: require('./webpack.rules'), | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// Put your normal webpack config below here | |
module: { | |
rules: require('./webpack.rules'), | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [ | |
// Add support for native node modules | |
{ | |
test: /\.node$/, | |
use: 'node-loader', | |
}, | |
{ | |
test: /\.(m?js|node)$/, | |
parser: { amd: false }, | |
use: { | |
loader: '@marshallofsound/webpack-asset-relocator-loader', | |
options: { | |
outputAssetBase: 'native_modules', | |
}, | |
}, | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment