1.0.4 • Published 3 years ago

rollup-plugin-node-copy v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Rollup Plugin Node Copy

For problem Node.js modules that won't bundle with Rollup, a brute force copy method is required. Instead of manually entering all the dependenices needed, simply input each of the trouble modules you need, and that module with it's dependencies will be copied into your target node_modules directory.

Usage

yarn add rollup-plugin-node-copy -D

import nodeCopy from 'rollup-plugin-node-copy';

[...]

plugins: [
    nodeCopy({
        packages: ['jimp'],
        src: './',
        dest: 'public/web',
        symlink: false
    }),
]

Parameters

  • packages - (arraystring)
    • array of main package names
  • src - (string)
    • source folder containing the main node_modules folder
  • dest - (string)
    • destination folder to generate the destiation node_modules folder
  • symlink - (boolean)
    • option to make a symlink to src node_modules folders instead of copying (best for dev)
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago