forge/packages/plugin/auto-unpack-natives
Keeley Hammond d3d47b2bc5 v7.4.0 2024-04-11 15:01:18 -07:00
..
src
README.md
package.json

README.md

plugin-auto-unpack-natives

This plugin will automatically add all native Node modules in your node_modules folder to the asar.unpack config option in your packagerConfig. If your app uses native Node modules, you should probably use this to reduce loading times and disk consumption on your users' machines.

// forge.config.js

module.exports = {
  plugins: [
    {
      name: '@electron-forge/plugin-auto-unpack-natives',
      config: {}
    }
  ]
};