0.0.2 • Published 9 years ago

gm-webpack-loader v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Gm loader for webpack

A loader for picture files with gm

for filename template placeholders, this loader inherits file-loader options.

Usage

Documentation: Using loaders

var image = require('gm?' +
  'name=images/[name]-[sha512:hash:base64:7].[ext]&' +
  'sizeH=480&' +
  'cropW=320!' +
  './images/my-pic.jpg');

Options

  • resizeH
  • resizeW
  • cropH
  • cropW

... docs in progress

License

MIT (http://www.opensource.org/licenses/mit-license.php)