1. rollup-plugin-copied
Copy files && directories with rollup
rollup-plugin-copied
Package: rollup-plugin-copied
Created by: sakitam-fdd
Last modified: Mon, 16 May 2022 04:18:48 GMT
Version: 0.0.3
License: MIT
Downloads: 17
Repository: https://github.com/sakitam-fdd/rollup-plugin-copied

Install

npm install rollup-plugin-copied
yarn add rollup-plugin-copied

rollup-plugin-copied

Copy files && directories with rollup

Build Status
Npm package

Install

 npm i -D rollup-plugin-copied

Usage

rollup.config.js

 const copy = require('rollup-plugin-copied');

const plugin = copy({
  from: './fixtures/',
  to: './dist/images',
  emitFiles: true // defaults to true
}, {
  watch: true
});

// or

const _plugin = copy([
  {
    from: './fixtures/',
    to: './dist/images',
    emitFiles: true // defaults to true
  }
], {
  watch: true
});

const config = {
  plugins: [
    plugin
  ]
}

patterns {Array|Object}

if use Object

Name Type Default Description
'from' {String} undefined If from is directory, to has no extension or ends in '/'
'to' {String} undefined If to has extension or from is file
'emitFiles' {String} undefined enable plugin

if use Array

Array item just like use Object

Name Type Default Description
'from' {String} undefined If from is directory, to has no extension or ends in '/'
'to' {String} undefined If to has extension or from is file
'emitFiles' {String} undefined enable plugin

options

Name Type Default Description
'exclude' {Array} [] Array of globs to ignore (applied to from)
'include' {Array} [] Array of globs to include (applied to from)
'watch' {Boolean} true When set to false, only the changes of the first resource are monitored, and the monitoring is not repeated.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin