electron-native-ext-loader
v1.0.0
Published
load native file such as .dll .node on electron production application
Downloads
4
Readme
electron-native-ext-loader
when you use a native addon on electron, you must face the problems which module cannot found in the production application.cause this problems because your native file(.dll, .node) path not related to the application resources folder(app.asar).this loader can help you resolve this problems
firstly
npm i electron-native-ext-loader -D
secondly configure you webpack options
module: {
rules: [
{
test: /.node/,
use: process.env.NODE_ENV === 'production' ? 'electron-native-ext-loader' : 'node-loader'
}
]
}
finally pack it!