Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@electron-forge/template-webpack
Advanced tools
Webpack template for Electron Forge, gets you started with Webpack really quickly
@electron-forge/template-webpack is a template for Electron Forge that uses Webpack to bundle your Electron application. It simplifies the process of setting up a development environment for Electron apps by providing a pre-configured Webpack setup.
Webpack Configuration
This feature provides a basic Webpack configuration that includes entry and output settings, as well as module rules for processing JavaScript files with Babel. It helps in setting up a build process for your Electron app.
module.exports = { entry: './src/index.js', output: { path: __dirname + '/dist', filename: 'bundle.js' }, module: { rules: [{ test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader' } }] } };
Hot Module Replacement
This feature enables Hot Module Replacement (HMR) in your Electron app, allowing you to see changes in real-time without restarting the application. It improves the development workflow by providing instant feedback.
const { HotModuleReplacementPlugin } = require('webpack'); module.exports = { plugins: [new HotModuleReplacementPlugin()] };
Electron Main and Renderer Process Bundling
This feature allows you to bundle both the main and renderer processes of your Electron app using Webpack. It ensures that your application is packaged correctly for distribution.
module.exports = { target: 'electron-main', entry: './src/main.js', output: { path: __dirname + '/dist', filename: 'main.bundle.js' } };
electron-webpack is a similar package that provides a pre-configured Webpack setup for Electron applications. It offers a more opinionated setup compared to @electron-forge/template-webpack, with built-in support for TypeScript, Vue, and React. It is suitable for developers who prefer a more integrated solution.
electron-builder is a powerful tool for building and packaging Electron applications. While it does not directly compete with @electron-forge/template-webpack in terms of Webpack configuration, it complements it by providing advanced packaging and distribution capabilities. It is often used alongside Webpack-based setups for a complete Electron development workflow.
6.0.0-beta.59 (2021-07-26)
FAQs
Webpack template for Electron Forge, gets you started with Webpack really quickly
The npm package @electron-forge/template-webpack receives a total of 70,085 weekly downloads. As such, @electron-forge/template-webpack popularity was classified as popular.
We found that @electron-forge/template-webpack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.