Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.12 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.12 KB

Vue Responsive Images Example

Live Demo

 

This example uses three webpack loaders: webpack-image-srcset-loader, webpack-image-resize-loader, and webpack-image-placeholder-loader

These two loaders generate a srcset string with images of different sizes and the corresponding resized and optimized images. Smaller screens will load smaller images, improving load time.

This loader generates a color for each image, you can use the color as a placeholder before the image loads.

Project setup

npm install

Run development server

npm run serve

Compile

npm run build