All Projects → wemake-services → Nuxt Imagemin

wemake-services / Nuxt Imagemin

Licence: mit
Nuxt module to minify your images. Works with: png, jpeg, gif, and svg

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nuxt Imagemin

Imagemin Module
Automatically optimize (compress) all images used in Nuxt.js
Stars: ✭ 37 (-78.24%)
Mutual labels:  nuxt, image-processing, image-optimization
Vue State Store
📮 VSS (Vue State Store) - Vue State Management (with Publish & Subscribe pattern)
Stars: ✭ 128 (-24.71%)
Mutual labels:  nuxt, nuxtjs
Nuxt Beginners Guide
Japan's first book that corresponds to Nuxt.js v2 and focuses on deep content.
Stars: ✭ 127 (-25.29%)
Mutual labels:  nuxt, nuxtjs
Nuxt Coreui
💫 NuxtJS + CoreUI Project — Unofficial Nuxt + CoreUI project, free to use boilerplate for every need.
Stars: ✭ 166 (-2.35%)
Mutual labels:  nuxt, nuxtjs
Nuxt Dev To Clone
Build DEV.TO clone with Nuxt.js and new `fetch` hook
Stars: ✭ 118 (-30.59%)
Mutual labels:  nuxt, nuxtjs
Contenta vue nuxt
Start in minutes a Drupal 8 with JSON API and Vue.js : a Nuxt.js ( Vue.js SSR ) consumer for Contenta CMS
Stars: ✭ 125 (-26.47%)
Mutual labels:  nuxt, nuxtjs
Blog Module
Build your blog with @nuxt
Stars: ✭ 130 (-23.53%)
Mutual labels:  nuxt, nuxtjs
Vue Api Query
💎 Elegant and simple way to build requests for REST API
Stars: ✭ 1,528 (+798.82%)
Mutual labels:  nuxt, nuxtjs
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (-20.59%)
Mutual labels:  nuxt, image-processing
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+1047.06%)
Mutual labels:  image-processing, image-optimization
Nuxpress
A Nuxt-based blogging engine and boilerplate
Stars: ✭ 135 (-20.59%)
Mutual labels:  nuxt, nuxtjs
Bitwave
Front end for [bitwave.tv] - an open platform live video streaming service
Stars: ✭ 113 (-33.53%)
Mutual labels:  nuxt, nuxtjs
Infoboard
Infoboard showing time, weather, calendar events, photos from local folder or online sources as background and Transport for London status updates. Intended for Raspberry Pi, but should work on any machine with NodeJS available.
Stars: ✭ 111 (-34.71%)
Mutual labels:  nuxt, nuxtjs
Nuxt Helmet
👷 Helmet for Nuxt
Stars: ✭ 126 (-25.88%)
Mutual labels:  nuxt, nuxtjs
Dayjs Module
Official Day.js module for your Nuxt.js project.
Stars: ✭ 111 (-34.71%)
Mutual labels:  nuxt, nuxtjs
Jellyfin Vue
A modern web client for Jellyfin based on Vue.
Stars: ✭ 129 (-24.12%)
Mutual labels:  nuxt, nuxtjs
Optimize Images
A command-line interface (CLI) utility written in pure Python to help you reduce the file size of images.
Stars: ✭ 141 (-17.06%)
Mutual labels:  image-processing, image-optimization
Lichter.io
My own website and CV
Stars: ✭ 105 (-38.24%)
Mutual labels:  nuxt, nuxtjs
Google Gtag Module
Enable google gtagjs for NuxtJs
Stars: ✭ 106 (-37.65%)
Mutual labels:  nuxt, nuxtjs
Surmon.me
🆒 My personal website and blog, powered by @vuejs (3)
Stars: ✭ 1,767 (+939.41%)
Mutual labels:  nuxt, nuxtjs

nuxt-imagemin

wemake.services Build Status

Nuxt module to minify your images. Works with: png, jpeg, gif, and svg.

Installation

npm install --save nuxt-imagemin
yarn add nuxt-imagemin

Add nuxt-imagemin to your nuxt.config.js:

{
  modules: ["nuxt-imagemin"];
}

Usage

  1. Put your images inside assets folder, for example: logo.png
  2. Then create an element to render it: <img src="~/assets/logo.png">
  3. When you will bundle your app for production, nuxt will minify your image assets

Read more about how assets work.

Options

We use imagemin plugin for webpack internally. It has a lot of options. We pass any provided options into the imagemin itself:

{
  modules: [
    [
      "nuxt-imagemin",
      {
        optipng: { optimizationLevel: 5 },
        gifsicle: { optimizationLevel: 2 }
      }
    ]
  ];
}

Custom plugins

If you want to add a custom plugin for imagemin, you can follow this steps with imagemin-webp as example.

import imageminWebp from 'imagemin-webp'

module.exports = {
  modules: [
    ['nuxt-imagemin', {
      plugins: [
        imageminWebp({quality: 50})
      ]
    }]
  ]
}

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].