@nuxtjs/vendor

1.1.7 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @nuxtjs/vendor

    Weekly Downloads

    32

    Version

    1.1.7

    License

    MIT

    Unpacked Size

    6.07 kB

    Total Files

    5

    Last publish

    Collaborators

    • antfu
    • danielroe
    • clarkdo
    • pi0
    • atinux
    • alexchopin