@pika/plugin-copy-assets
v0.9.2
Published
A @pika/pack plugin: Copies static assets into your built package directory.
Downloads
1,560
Readme
@pika/plugin-copy-assets
A @pika/pack build plugin. Copies static assets from your root source directory into the built
pkg/
directory. Useful for non-JS associated files (like CSS, images).
Install
# npm:
npm install @pika/plugin-copy-assets --save-dev
# yarn:
yarn add @pika/plugin-copy-assets --dev
Usage
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-standard-pkg"],
["@pika/plugin-build-node", {}]
["@pika/plugin-copy-assets", {}]
]
}
}
For more information about @pika/pack & help getting started, check out the main project repo.
Options
"files"
(Default:["assets/"]
): An array of files/folders to copy into the pkg out directory. Does not support glob pattern matching, but will copy any directories recursively.
Result
- See the package description. Copies static assets from your root source directory into the built
pkg/
directory (example: "assets/" => "pkg/assets").