Skip to content
PluginStats

node-env-webpack-plugin weekly downloads statistics

By sindresorhus (6 listings) · npm · Webpack plugins

Simplified `NODE_ENV` handling with webpack

View on npm Fresh · Dec 6, 2026

node-env-webpack-plugin has 922 recorded weekly downloads on npm, a decrease of 48.1% over the past 30 days, ranking #2095 of 3,247 tracked listings.

Weekly downloads
922
Official API · Dec 5, 2026
7-day growth
-29.2%
-381 weekly downloads
30-day growth
-48.1%
-853 weekly downloads
90-day growth
-40.9%
-639 weekly downloads
Rank
#2095
▼ 181 in 7 days

About node-env-webpack-plugin

node-env-webpack-plugin

Simplified NODE_ENV handling with webpack

Install

npm install node-env-webpack-plugin

Usage

  import path from 'node:path';
+ import NodeEnvPlugin from 'node-env-webpack-plugin';

- const NODE_ENV = process.env.NODE_ENV || 'development';
- const isProduction = NODE_ENV === 'production';

  module.exports = {
  	entry: './source',
  	output: {
  		path: path.join(__dirname, 'distribution'),
  		filename: 'bundle.js'
  	},
- 	devtool: isProduction ? 'source-map' : 'cheap-module-source-map',
+ 	devtool: NodeEnvPlugin.devtool,
  	module: {
  		rules: [
  			{
  				test: /\.js$/,
  				exclude: /node_modules/,
  				loader: 'babel-loader'
  			}
  		]
  	},
  	plugins: [
- 		new webpack.EnvironmentPlugin({
- 			NODE_ENV: 'development'
- 		}),
+ 		new NodeEnvPlugin()
  	]
  };

API

Sets process.env.NODE_ENV in the Node.js process to development at import-time if it's not defined, or production if webpack is run with webpack -p.

NodeEnvPlugin()

Sets process.env.NODE_ENV in the bundle to the same as in the Node.js process.

NodeEnvPlugin.isProduction

For convenience and to prevent typos.

process.env.NODE_ENV === 'production'

NodeEnvPlugin.isDevelopment

process.env.NODE_ENV === 'development'

NodeEnvPlugin.isTest

process.env.NODE_ENV === 'test'

NodeEnvPlugin.devtool

Pass this to the webpack devtool option. It will give you good but slow source maps in production (source-map) and fast source maps in development (cheap-module-source-map).

Related

Description from the npm listing.

  • webpack-plugin
  • webpack
  • node
  • node-env
  • env
  • environment
  • development
  • production

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

node-env-webpack-plugin weekly downloads on npm, last 90 days: 922 weekly downloads as of Dec 5, 2026, -40.9% over 90 days.node-env-webpack-pluginWeekly downloads on npm · Last 90 days922downloads / week-40.9% over 90 days05001K1.5K2KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
node-env-webpack-plugin weekly downloads on npm, last 90 days: 922 weekly downloads as of Dec 5, 2026, -40.9% over 90 days.

7/30/90-day growth

node-env-webpack-plugin weekly downloads growth on npm: -29.2% over 7 days, -48.1% over 30 days, -40.9% over 90 days.node-env-webpack-pluginWeekly downloads growth on npm922downloads / week now7-day growth-381 weekly downloads-29.2%30-day growth-853 weekly downloads-48.1%90-day growth-639 weekly downloads-40.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
node-env-webpack-plugin weekly downloads growth on npm: -29.2% over 7 days, -48.1% over 30 days, -40.9% over 90 days.

Ranking history

node-env-webpack-plugin npm ranking history: currently #2095 (by weekly downloads).node-env-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2095current rank#400#600#800#1000#1200#1400#1600#1800#2000#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
node-env-webpack-plugin npm ranking history: currently #2095 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 105, #15 (overall #2,095)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 5, #1 (overall #81)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for node-env-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
922-2
924-96
1,020-246
1,266+102
1,164-24
1,188-100
1,288-15
1,303+1
1,302+112
1,190+133
1,057-38
1,095+96
999+93
906—

Similar npm Webpack plugins plugins

All 20 node-env-webpack-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/node-env-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.