Skip to content

christophercliff/metalsmith-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A webpack plugin for Metalsmith

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •