Registry / devops / webpack-atoms

webpack-atoms

JSON →
library17.1.0jsnpmunverified

Utility library providing small, composable helpers for crafting webpack 5+ configurations. Current stable version is 17.1.0, with active maintenance and frequent releases. Offers pre-built rule and plugin generators (e.g., rules.js(), plugins.uglify()) and atomic loaders (loaders.style(), loaders.file()), reducing boilerplate and configuration drift. Prioritizes webpack 5 compatibility and lightweight abstraction over full-featured config tools like webpack-merge or webpack-blocks.

npm install webpack-atoms
INSTALL
IMPORT
SIG · WEBPACK-ATOMS
W
webpack-atoms
devopsjavascriptv17.1.0
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.

rules
const { rules } = require('webpack-atoms')
CommonJS usage; no ESM exports documented
plugins
const { plugins } = require('webpack-atoms')
CommonJS usage; no ESM exports documented
loaders
const { loaders } = require('webpack-atoms')
CommonJS usage; no ESM exports documented

Basic webpack config using rules, plugins, and loaders from webpack-atoms.

const { rules, plugins, loaders } = require('webpack-atoms'); module.exports = { entry: './src/app.js', output: { filename: 'bundle.js', path: __dirname + '/dist' }, module: { rules: [ rules.js(), rules.images(), rules.css(), ], }, plugins: [ plugins.uglify(), plugins.loaderOptions(), plugins.extractText(), ], };
Debug
Known issues
breakingVersion 15.0.0 dropped support for webpack 4; use webpack-atoms@14 for webpack 4 compatibility.
fix
Upgrade to webpack 5 or pin to webpack-atoms@14.
affects: >=15.0.0
Errors
Common errors & fixes
Cannot find module 'webpack-atoms'
Package not installed or not in node_modules.
fix
Run 'npm install webpack-atoms'
Upgrade
Version history
17.1.0latest on npm
Audit
Dependencies
webpackrequiredpeer dependency; required for config generation
Agent activity
11 hits · last 30 days
node
10
Resources
webpack-atoms — npm install webpack-atoms · libregistry