{"library":"metalsmith-webpack","title":"metalsmith-webpack","description":"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.","language":"javascript","status":"abandoned","last_verified":"Sat Apr 25","install":{"commands":["npm install metalsmith-webpack"],"cli":null},"imports":["import webpack from 'metalsmith-webpack'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const Metalsmith = require('metalsmith');\nconst webpack = require('metalsmith-webpack');\nconst path = require('path');\n\nMetalsmith(__dirname)\n  .use(webpack({\n    context: path.resolve(__dirname, './src/js/'),\n    entry: './index.js',\n    output: {\n      path: '/js',\n      filename: 'bundle.js'\n    }\n  }))\n  .build((err) => {\n    if (err) throw err;\n  });","lang":"javascript","description":"Demonstrates basic usage integrating webpack into a Metalsmith build pipeline.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}