
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
webpack-base-cli
Advanced tools
Use webpack to build project
npm install --save-dev webpack-base-cli
webpack-base-cli build [options]
-p, --prod Set production environment [boolean] [default: false]
-c, --config Set webpack config [string]
-v, --version Show version number
-h, --help Show help
webpack-base-cli build -p true -c config.js
Default configuration is recommended, including config.js, babel.config.js, postcss.config.js, browserslist.js and other files. You can also configure these files by yourself, provided they are placed in the root directory of your project.
The default configuration of config.js is roughly as follows:
const path = require('path');
const config = {
path: {
src: path.resolve(process.cwd(), 'src'),
dev: path.resolve(process.cwd(), 'dev'),
prod: path.resolve(process.cwd(), 'output'),
devPublicPath: '/',
prodPublicPath: '',
},
devServerPort: 8888,
backEndServer: '',
hash: '-[hash:6]',
chunkhash: '-[chunkhash:6]',
contenthash: '-[contenthash:6]',
supportNewAPI: true,
imageCompress: true,
html: [{
name: 'index.html',
path: path.resolve(process.cwd(), 'src/index.html'),
}],
entry: {
index: [path.resolve(process.cwd(), 'src/index.js')]
},
favicon: path.resolve(process.cwd(), 'src/favicon.ico'),
};
Note: generally speaking, you only need to configure path.prodPublicPath and backEndServer in your own config.js.
MIT.
FAQs
Use webpack to build project
The npm package webpack-base-cli receives a total of 0 weekly downloads. As such, webpack-base-cli popularity was classified as not popular.
We found that webpack-base-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.