New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

electron-native-ext-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-native-ext-loader

load native file such as .dll .node on electron production application

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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!

FAQs

Package last updated on 31 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts