1.0.0 • Published 5 years ago
electron-native-ext-loader v1.0.0
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!
1.0.0
5 years ago