3rd / parcel-plugin-static

Parcel plugin for copying everything inside a directory to the bundle directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parcel-plugin-static

Parcel plugin for copying everything from a configurable source directory to the a configurable directory inside the bundle.

Made this because I needed it.

Default source: 'static' - will be the "static" folder in the root of your project

Default destination: 'static' - will be "dist/static" for most people, leave it empty if you want to copy the files directly into the dist directory.

Install

npm i -D parcel-plugin-static

Configuration

Inside your main package.json add this:

"parcel-plugin-static": {
  "source": "static",
  "destination": "static"
}

Remember that source is relative to the root of your project and destination is relative to the dist folder.

About

Parcel plugin for copying everything inside a directory to the bundle directory.

License:MIT License


Languages

Language:JavaScript 100.0%