@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

Stats

StarsIssuesVersionUpdatedCreatedSize
@nuxtjs/optimize
243401.1.14 years ago4 years agoMinified + gzip package size for @nuxtjs/optimize in KB

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.