1. rollup-copy-plugin
Simple rollup plugin to copy files.
rollup-copy-plugin
Package: rollup-copy-plugin
Created by: eritikass
Last modified: Sun, 26 Jun 2022 13:57:22 GMT
Version: 0.1.0
License: MIT
Downloads: 583
Repository: https://github.com/eritikass/rollup-copy-plugin

Install

npm install rollup-copy-plugin
yarn add rollup-copy-plugin

rollup-copy-plugin

Simple rollup plugin to copy files.

Usage

NB: This plugin only copies files once when rollup start, any later changes will not be copied (before you start rollup again).

 import copyPlugin from 'rollup-copy-plugin';

export default {
  // ...
  plugins: [
    // ...
    copyPlugin({
      './src/test1.txt': './dist/test1.txt',
      './src/test2.txt': './dist/test2.txt',
    }),
    // ...
  ],
  // ...
};

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