A webpack plugin for Metalsmith
JavaScript
Latest commit 90a6085 Feb 2, 2016 @christophercliff 1.0.3
Permalink
Failed to load latest commit information.
lib Always log webpack stats Jun 29, 2015
test Fix tests to work with webpack ~1.9.0 Jun 29, 2015
.gitignore First commit. Mar 27, 2014
.travis.yml First commit. Mar 27, 2014
LICENSE.md First commit. Mar 27, 2014
README.md Update README.md Aug 7, 2014
package.json 1.0.3 Feb 2, 2016

README.md

metalsmith-webpack

Build Status

A webpack plugin for Metalsmith.

Installation

npm install metalsmith-webpack

Usage

var webpack = require('metalsmith-webpack')

Metalsmith(__dirname)
  .use(webpack(options))
  .build()

Options

See the webpack configuration documentation for details.

Example

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.

Tests

$ npm test

License

MIT License, see LICENSE for details.