Optional
devOptional
devOverrides for webpack-dev-server
options.
The following options cannot be overridden here:
port
(use the port
config option)static
setupExitSignals
headers.Content-Security-Policy
(use the devContentSecurityPolicy
config option)Optional
jsonInstructs webpack to emit a JSON file containing statistics about modules, the dependency
graph, and various other build information for the main process. This file is located in
.webpack/main/stats.json
, but is not packaged with your app.
Optional
loggerThe TCP port for web-multi-logger. Defaults to 9000.
The webpack config for your main process
Optional
packageIn the event that webpack has been configured with devtool: sourcemap
(or any other option
which results in .map
files being generated), this option will cause the source map files be
packaged with your app. By default they are not included.
Optional
portThe TCP port for the dev servers. Defaults to 3000.
Electron Forge webpack configuration for your renderer process
If this property is configured as an array each group of entryPoints is built sequentially such that later indexed renderer configurations can depend on the output of previous ones.
If you want to build multiple targets in parallel please specify multiple entryPoints in a single renderer configuration. Most usecases should not set this to an array.
Sets the
Content-Security-Policy
header for the Webpack development server.Normally you would want to only specify this as a
<meta>
tag. However, in development mode, the Webpack plugin uses thedevtool: eval-source-map
source map setting for efficiency purposes. This requires the'unsafe-eval'
source for thescript-src
directive that wouldn't normally be recommended to use. If this value is set, make sure that you keep this directive-source pair intact if you want to use source maps.Default:
default-src 'self' 'unsafe-inline' data:;
script-src 'self' 'unsafe-eval' 'unsafe-inline' data: