A webpack plugin that generates a Laravel-compatible mix-manifest.json file for use with Laravel's `mix()` helper. Version 3.1.2 requires webpack 5 (use v2.x for webpack 4, v1.x for webpack 2/3). Ships TypeScript definitions. Active development with frequent updates. Key differentiator: enables Laravel versioned asset management without using Laravel Mix, supporting ESM, CJS, and TypeScript configurations.
npm install webpack-laravel-mix-manifestVerified import paths — ran on the pinned version, not inferred.
Shows basic ESM webpack config with plugin instantiation and expected output.
Use version 2.x for webpack 4, version 1.x for webpack 2/3
Update to webpack 5 and use webpack-laravel-mix-manifest@3
Use import { WebpackLaravelMixManifest } from 'webpack-laravel-mix-manifest'Specify the filename as first argument if a custom name is needed
Upgrade to version 3.0.3+ or 2.2.2+
Change import WebpackLaravelMixManifest from 'webpack-laravel-mix-manifest' to import { WebpackLaravelMixManifest } from 'webpack-laravel-mix-manifest'Run npm install webpack-laravel-mix-manifest --save-dev or yarn add webpack-laravel-mix-manifest --dev
Downgrade plugin to v2.x: npm install webpack-laravel-mix-manifest@2 --save-dev, or upgrade webpack to 5