metalsmith-webpack

A webpack plugin for Metalsmith

metalsmith-webpack

A webpack plugin for Metalsmith.

npm install metalsmith-webpack
var webpack = require('metalsmith-webpack')
 
Metalsmith(__dirname)
  .use(webpack(options))
  .build()

See the webpack configuration documentation for details.

Metalsmith(__dirname)
  .use(webpack({
    context: path.resolve(__dirname, './src/js/'),
    entry: './index.js',
    output: {
      path: '/js',
      filename: 'bundle.js'
    }
  }))
  .build()

See the tests for more examples.

$ npm test

MIT License, see LICENSE for details.