A webpack plugin for Metalsmith
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore First commit. Mar 27, 2014
.travis.yml
LICENSE.md First commit. Mar 27, 2014
README.md
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.