Registry / devops / electron-webpack-js

electron-webpack-js

JSON →
library2.4.1jsnpmunverified

JavaScript add-on for electron-webpack, providing webpack configuration for JavaScript and JSX files in Electron projects. Version 2.4.1 is bundled with electron-webpack, so no separate installation is needed. Part of the electron-webpack ecosystem that simplifies webpack setup for Electron main and renderer processes. Supports custom webpack config functions, static source directory configuration, CSS Modules, and .sass extension. Differentiators: zero-config webpack for Electron with Babel transpilation and optimized production builds using terser-webpack-plugin.

npm install electron-webpack-js
INSTALL
IMPORT
SIG · ELECTRON-WEBPACK-J
E
electron-webpack-js
devopsjavascriptv2.4.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

electron-webpack-js
This package is bundled with electron-webpack and should not be imported directly.
Attempting to install it separately via npm install electron-webpack-js
The package is automatically used by electron-webpack; manual import is unnecessary.

Demonstrates that electron-webpack-js is automatically included with electron-webpack, so users just need to install the main package.

// No quickstart code because this package is an add-on that operates automatically. // To use, simply install electron-webpack and follow its configuration. // Example package.json scripts: // { // "scripts": { // "dev": "electron-webpack dev", // "build": "electron-webpack build" // } // } // For JavaScript support, no extra steps are required.
Debug
Known issues
deprecatedelectron-webpack and its add-ons are no longer actively maintained. Consider migrating to a more modern setup like electron-forge or Vite.
fix
Use Create React App for Electron or electron-vite.
affects: >=2.0.0
breakingVersion 2.4.0 switched from uglifyjs-webpack-plugin to terser-webpack-plugin due to ES6+ incompatibility.
fix
If you were customizing uglifyjs-webpack-plugin, update your config to use terser-webpack-plugin instead.
affects: =2.4.0
gotchaThe package is bundled with electron-webpack and should not be installed separately. Doing so may cause version conflicts.
fix
Remove electron-webpack-js from your dependencies if you manually added it.
affects: >=2.0.0
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'electron-webpack-js'
Attempting to import or require the package directly.
fix
Do not import electron-webpack-js; it is automatically used by electron-webpack.
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
Custom webpack config function returns an invalid object or tries to modify built-in config incorrectly.
fix
Ensure custom config function returns a valid webpack configuration or merges with the existing one properly.
Upgrade
Version history
2.4.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
electron-webpack-js — npm install electron-webpack-js · libregistry