Webpack Production Setup

5.0.0 · abandoned · verified Wed Apr 22

This package, `webpack-production-setup`, provides a pre-configured Webpack 2 build pipeline aimed at production performance and simplicity. Despite its `5.0.0` version, the documentation explicitly states it targets Webpack 2, making it severely outdated for current Webpack versions (5+). It abstracts common configurations for ES6, Babel, and Sass bundling into a reusable `webpack.config.js` file that can be required and optionally mutated. Its stated focus is on ease of use and optimized output. Given the dependency on Webpack 2 and the last commit dating back to 2017, it is not actively maintained for modern Webpack environments and has not seen recent updates to align with current ecosystem best practices or Webpack 5 features.

Warnings

Install

Imports

Quickstart

This code demonstrates how to import the default Webpack configuration provided by `webpack-production-setup` and then modify it with custom plugins or settings before exporting it for Webpack to consume.

const wppsConfig = require('webpack-production-setup/webpack.config.js');

// Optionally, mutate the configuration provided by the package
wppsConfig.plugins.push(/* my own plugins here, e.g., new SomeWebpackPlugin() */);
wppsConfig.devtool = 'cheap-module-eval-source-map'; // Example of overriding devtool

module.exports = wppsConfig;

view raw JSON →