@electron-forge/plugin-webpack
TypeScript icon, indicating that this package has built-in type declarations

7.4.0 • Public • Published

plugin-webpack

This plugin makes it easy to set up standard webpack tooling to compile both your main process code and your renderer process code, with built-in support for Hot Module Replacement (HMR) in the renderer process and support for multiple renderers.

// forge.config.js

module.exports = {
  plugins: [
    {
      name: '@electron-forge/plugin-webpack',
      config: {
        mainConfig: './webpack.main.config.js',
        renderer: {
          config: './webpack.renderer.config.js',
          entryPoints: [{
            name: 'main_window',
            html: './src/renderer/index.html',
            js: './src/renderer/index.js',
            preload: {
              js: './src/preload.js'
            }
          }]
        }
      }
    }
  ]
};

Dependencies (13)

Dev Dependencies (8)

Package Sidebar

Install

npm i @electron-forge/plugin-webpack

Weekly Downloads

17,794

Version

7.4.0

License

MIT

Unpacked Size

168 kB

Total Files

39

Last publish

Collaborators

  • vertedinde
  • georgexu99
  • erickzhao
  • malept
  • marshallofsound