gm-webpack-loader

0.0.2 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i gm-webpack-loader

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • skeiter9