Skip to content

1.3.0

Latest
Compare
Choose a tag to compare
@milewski milewski released this 06 May 12:49
· 36 commits to master since this release

now accepts [width] and [height] for images format on the name property: e.g:

{
    test: /\.pdf$/,
    use: [
        {
            loader: 'bin-exec-loader',
            options: {
                binary: 'convert',
                prefix: '-',
                export: true,
                emitFile: /\.jpg$/,
                multiple: true,
                name: 'images/pdf/[name]-[width]x[height].jpg',
                args: {
                    density: '300',
                    colorspace: 'RGB',
                    quality: '100',
                    alpha: 'remove',
                    background: 'white',
                    $1: '[input]',
                    resize: '40%',
                    $2: '[output]'
                }
            }
        }
    ]
},