Releases: milewski/bin-exec-loader
Releases · milewski/bin-exec-loader
1.3.0
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]'
}
}
}
]
},