electron-native-ext-loader

1.0.0 • Public • Published

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!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

Package Sidebar

Install

npm i electron-native-ext-loader

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.16 kB

Total Files

3

Last publish

Collaborators

  • stitch0528