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

7.8.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'
            }
          }]
        }
      }
    }
  ]
};

/@electron-forge/plugin-webpack/

    Package Sidebar

    Install

    npm i @electron-forge/plugin-webpack

    Weekly Downloads

    24,999

    Version

    7.8.0

    License

    MIT

    Unpacked Size

    170 kB

    Total Files

    39

    Last publish

    Collaborators

    • malept
    • marshallofsound
    • erickzhao
    • georgexu99
    • vertedinde