{"library":"webpack-mode","type":"library","category":null,"description":"Get the current mode (production/development) of a Webpack 4 build. Version 1.1.0 is the latest stable release. This tiny utility checks the `--mode` CLI flag or `NODE_ENV` environment variable and exposes `isProduction`, `isDevelopment`, and a string-comparable object. Works only with Webpack 4 — it will silently return wrong results on Webpack 5. No dependencies, no TypeScript types.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","webpack","mode","environment"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webpack-mode","imports":["const { isProduction } = require('webpack-mode')","const { isDevelopment } = require('webpack-mode')","const mode = require('webpack-mode')"]},{"cmd":"yarn add webpack-mode","imports":[]},{"cmd":"pnpm add webpack-mode","imports":[]}],"homepage":null,"github":"https://github.com/mckomo/webpack-mode","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-mode","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/webpack-mode/compatibility"}}