
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@humblebee/config-webpack5
Advanced tools
Centralized configuration for webpack v5
Install the packages from your favorite package manager
npm i -D webpack @humblebee/config-wepback5 # or yarn
This package provides a default centralised config for building web applications with webpack v5.
// webpack.config.babel.js
import path from 'path';
import { getWebpack5FrontendConfiguration } from '@humblebee/config-webpack5';
// arbitrary
const BUILD_FOLDER = path.resolve(__dirname, 'dist');
const PUBLIC_FOLDER = path.resolve(__dirname, 'public');
const getWebpackConfiguration = (_env, args) => {
const { mode } = args;
switch (mode) {
case 'development':
return getWebpack5FrontendConfiguration(
'development',
{
// options for the shared configuration
buildFolder: BUILD_FOLDER,
publicFolder: PUBLIC_FOLDER,
htmlTemplate: path.resolve(PUBLIC_FOLDER, 'index.html'),
// devServer: {
// // ...
// }
},
{
// options forwarded to the webpack configuration
// add whatever you need
},
);
case 'production':
return getWebpack5FrontendConfiguration(
'production',
{
// options for the shared configuration
buildFolder: BUILD_FOLDER,
publicFolder: PUBLIC_FOLDER,
htmlTemplate: path.resolve(PUBLIC_FOLDER, 'index.html'),
// imageminOptions: {},
// subResourceIntegrityOptions: {},
// hashedModuleIdsOptions: {},
},
{
// options forwarded to the webpack configuration
// add whatever you need
},
);
default:
throw new Error(`Unable to provide configuration for unknown environment: "${mode}"`);
}
};
FAQs
Centralized configuration for webpack v5
The npm package @humblebee/config-webpack5 receives a total of 0 weekly downloads. As such, @humblebee/config-webpack5 popularity was classified as not popular.
We found that @humblebee/config-webpack5 demonstrated a not healthy version release cadence and project activity because the last version was released 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.