🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

parcel-reporter-multiple-file-copier

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcel-reporter-multiple-file-copier

Parcel v2 plugin for copying multiple static files

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

parcel-reporter-multiple-file-copier

npm version

This is a Parcel v2 plugin for copying multiple static files.

Forked from this plugin.

Install

Yarn

$ yarn add -D parcel-reporter-multiple-file-copier

NPM

$ npm install parcel-reporter-multiple-file-copier --save-dev

Usage

Configuration is set under staticFiles in package.json. It must be an array of objects containing origin and destination props:

PropertyPath
originExample: node_modules/@package/public
destinationExample: public

You ⚠️ must extend Parcel configuration with the plugin name in .parcelrc:

{
  "reporters": [
    "...",
    "parcel-reporter-multiple-file-copier"
  ]
}

*Note that the "..." notation is used to keep the default report plugins loaded by Parcel.

Example

This example will copy the contents of the folder public into the folder DIST_DIR_PATH/public. (Note that the DIST_DIR_PATH is specified by Parcel, you don't need to pass it)

package.json

{
  "staticFiles": [
    {
      "origin": "public",
      "destination": "public/"
    }
  ]
}

Keywords

parcel

FAQs

Package last updated on 11 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts