Webpack plugin for concatenating files into a single output, with optional error throwing control. Version 3.0.1 requires Webpack ^4.0.1. Forked from webpack-concat-plugin, it adds the ability to suppress or enable errors during the concatenation process, giving developers flexibility in handling missing sources. The plugin supports configuration of source paths, output file, and error behavior. Ideal for custom builds where file concatenation is needed without hard failures.
npm install webpack-concat-plugin-with-optional-errorsVerified import paths — ran on the pinned version, not inferred.
Shows basic usage with CJS require, concatenating two files and throwing on error.
Verify all source files exist or set throwOnError: true to get errors during build.
Use webpack 4 or look for an updated version compatible with webpack 5.
Run 'npm install webpack-concat-plugin-with-optional-errors --save-dev'
Use 'const WebpackConcatPlugin = require(...)' or 'import WebpackConcatPlugin from ...'