@nuxtjs/optimize

[![npm](https://img.shields.io/npm/dt/@nuxtjs/optimize.svg?style=flat-square)](https://npmjs.com/package/@nuxtjs/optimize) [![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/optimize/latest.svg?style=flat-square)](https://npmjs.com/package/@nu

Usage no npm install needed!

<script type="module">
  import nuxtjsOptimize from 'https://cdn.skypack.dev/@nuxtjs/optimize';
</script>

README

Optimize (Preset)

npm npm (scoped with tag)

Adds more optional optimizers to nuxt project.

Setup

  • Add @nuxtjs/optimize dependency using yarn or npm to your project
  • Add @nuxtjs/optimize to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    '@nuxtjs/optimize',
  
    // With options
    ['@nuxtjs/optimize', { /* options */ }],
  ]
}

Modules

cssnano

  • options: use options.cssnano to customize it.