Socket
Socket
Sign inDemoInstall

parcel-reporter-multiple-file-copier

Package Overview
Dependencies
5
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parcel-reporter-multiple-file-copier

Parcel v2 plugin for copying multiple static files


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 11 May 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc