Calvin-LL / vue-responsive-images-example

Vue with responsive images

Home Page:https://vue-responsive-images-example.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Vue with responsive images

https://vue-responsive-images-example.netlify.app


Languages

Language:JavaScript 51.6%Language:Vue 38.5%Language:HTML 9.8%