metalsmith-webpack

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i metalsmith-webpack

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • christophercliff