@nuxtjs/vendor

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

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
21935Jun 21, 2021Aug 26, 2020Minified + gzip package size for @nuxtjs/vendor in KB

Readme

Vendor

npm npm (scoped with tag)

This awesome little modules creates junction symlinks from node_modules into static/vendor so you can directly serve node modules inside web. Useful for runtime dependencies.

Usage

  • Add @nuxtjs/vendor dependency using yarn or npm to your project
  • Add @nuxtjs/vendor to modules section of nuxt.config.js
    {
    modules: [
      '@nuxtjs/vendor',
    ]
    }
    
  • Define your dependencies in nuxt.config.json inside vendor section
    {
      vendor: [ 'ckeditor' ]
    }
    
  • Add /static/vendor to .gitignore

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.