ParcelJS plugin to copy static files from some (currently only from static in project root) dir
to directory with bundle.
yarn add parcel-plugin-static-files-copy --dev
- Create
staticdir in you project root. - Fill it with your static files
- Run build - and that's all!
The plugin allows you to name the forder whose contents should be present in the build output directory.
Customize the folder from where static resources need to be copied using the staticPath parameter in package.json file. staticPath can both be a plain string, or an array of directories, eg. ["public", "vendor/public"].
// package.json
{
...
"staticPath": "public"
}or
// package.json
{
...
"staticPath": ["public", "vendor/public"]
}You're interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!