Webpack-focus is a configurator that generates webpack configurations for Focus, a React-based framework. Version 1.0.4 is the current stable release, with a focus on TypeScript and React support. It uses babel-preset-focus, requiring NODE_ENV to be set to 'development', 'production', or 'test'. It provides a callback-based API to customize the generated webpack config. Compared to manual webpack setup, it abstracts common patterns for Focus projects, including hot reload, dev server, and polyfills. Release cadence is irregular; latest versions are bug fixes.
npm install webpack-focusVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of webpack-focus to generate a webpack config object for a Focus application.
Set NODE_ENV environment variable to one of the three valid values.
Set environment variable LEGACY_LODASH=true if using lodash 3.10.1.
Remove LEGACY_EXPORTS=true if your project uses ES6 import/export.
Wrap DevTools component in {__DEV__ && <DevTools/>} to avoid production issues.Kill the existing process on that port or set a different PORT environment variable.
Run 'npm install focus-core' for the required dependency.
Set NODE_ENV to 'development' or define __DEV__ in webpack plugins manually.