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

6.0.5 • 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'
            }
          }],
        }
      }
    }
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @nkallen/electron-forge-plugin-webpack

Weekly Downloads

1

Version

6.0.5

License

MIT

Unpacked Size

267 kB

Total Files

64

Last publish

Collaborators

  • nkallen