img-assets-webpack-plugin

0.0.3 • Public • Published

img-assets-webpack-plugin

针对图片资源生成映射关系数组的插件

目前只支持png, gif, jpg, jpeg4种

支持由file-loader转化的base64图

usage:

var ImgAssetsPlugin = require('./webpack.plugin/imgAssets');

//...webpack.config.js
//...
//...
  plugins: [      
      new ImgAssetsPlugin({
        filename: 'imgAssets.json'
      })
  ]
}
//options.filename can be absolute path

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.30
0.0.20

Package Sidebar

Install

npm i img-assets-webpack-plugin

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • vegawong