Skip to content

imager-io/webpack-imager-example-vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This makes use of Webpack and Imager without any ‘non-standard’ Webpack plugins.

Setup

$ npm install

Run Webpack

$ npx webpack

Will save the optimized images to ./dist/public.

Note that Webpack may emit warnings for “large” files. Annoyingly it’s only considering the ‘input’ file size, and not the ‘output’ or optimized file size.