{"library":"node-env-webpack-plugin","type":"library","category":null,"description":"Simplifies NODE_ENV handling in webpack builds. Current stable version 2.0.0 (2024), requires Node.js >=18 and is pure ESM. Sets process.env.NODE_ENV automatically: defaults to 'development' at import time if undefined, or 'production' when webpack runs with -p. Provides convenience boolean getters (isProduction, isDevelopment, isTest) to avoid typos, and a devtool helper that selects source-map in production and cheap-module-source-map in development. Replaces manual NODE_ENV checks and webpack.EnvironmentPlugin setup with a single plugin.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","webpack-plugin","webpack","node","node-env","env","environment","development","production"],"install":[{"cmd":"npm install node-env-webpack-plugin","imports":["import NodeEnvPlugin from 'node-env-webpack-plugin'","import NodeEnvPlugin from 'node-env-webpack-plugin'; NodeEnvPlugin.isProduction","import NodeEnvPlugin from 'node-env-webpack-plugin'; NodeEnvPlugin.devtool"]},{"cmd":"yarn add node-env-webpack-plugin","imports":[]},{"cmd":"pnpm add node-env-webpack-plugin","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/node-env-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-env-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/node-env-webpack-plugin/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}