A webpack plugin for Metalsmith, version 1.0.3. This package integrates webpack into the Metalsmith build pipeline, allowing you to process JavaScript bundles as part of your static site generation. It requires both webpack and Metalsmith as peer dependencies. Compared to other build tools, it leverages webpack's full configuration, making it suitable for complex asset pipelines. However, the package is currently unmaintained (last update 2015) and relies on an outdated webpack 1.x API. May still work with modern webpack via compatibility layers, but use caution.
npm install metalsmith-webpackVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage integrating webpack into a Metalsmith build pipeline.
Use webpack 1.x or fork the package to upgrade.
Consider alternatives like metalsmith-uglify or manual webpack integration.
Refer to webpack 1.x configuration documentation.
Run 'npm install metalsmith-webpack' and ensure it's in your dependencies.
Use the correct import: const webpack = require('metalsmith-webpack');