@pika/plugin-copy-assets
A @pika/pack plugin: Copies static assets into your built package directory.
Last updated 5 months ago by fredkschott .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pika/plugin-copy-assets 
SYNC missed versions from official npm registry.

@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

  1. See the package description. Copies static assets from your root source directory into the built pkg/ directory (example: "assets/" => "pkg/assets").

Current Tags

  • 0.9.2                                ...           latest (5 months ago)

18 Versions

  • 0.9.2                                ...           5 months ago
  • 0.9.1                                ...           5 months ago
  • 0.8.3                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.2                                ...           5 months ago
  • 0.8.1                                ...           7 months ago
  • 0.8.0                                ...           7 months ago
  • 0.7.1                                ...           8 months ago
  • 0.7.0                                ...           8 months ago
  • 0.6.1                                ...           10 months ago
  • 0.6.0                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.16                                ...           a year ago
  • 0.3.15                                ...           a year ago
  • 0.3.14                                ...           a year ago
  • 0.3.13                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 8
This Month 8
Last Day 2
Last Week 1
Last Month 69
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |