@pika/plugin-build-umd
A @pika/pack plugin: Adds a UMD distribution to your package, built to be flexible & run on legacy browsers & environments.
Last updated 4 days ago by fredkschott .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pika/plugin-build-umd 
SYNC missed versions from official npm registry.

@pika/plugin-build-umd

A @pika/pack build plugin. Adds a UMD distribution to your package, built to be flexible & run on legacy browsers & environments. If you're looking to build for web browsers and/or UNPKG, we recommend using @pika/plugin-build-web instead.

Install

# npm:
npm install @pika/plugin-build-umd --save-dev
# yarn:
yarn add @pika/plugin-build-umd --dev

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-umd"]
    ]
  }
}

For more information about @pika/pack & help getting started, check out the main project repo.

Options

  • "sourcemap" (Default: "true"): Adds a source map for this build.
  • "name" (Defaults: your package name): Sets the name that your package is attached to on the window object.

Result

  1. Adds a UMD distribution to your built package: dist-umd/index.js
  2. UMD Syntax
  3. All dependencies bundled with the package.
  4. Transpiled to run on all actively used and maintained browsers (excluding IE 11 and Opera Mini).
  5. Adds a "umd:main" entrypoint to your built package.json manifest.

Current Tags

  • 0.6.1                                ...           latest (4 days ago)

15 Versions

  • 0.6.1                                ...           4 days ago
  • 0.6.0                                ...           a month ago
  • 0.5.1                                ...           2 months ago
  • 0.5.0                                ...           2 months ago
  • 0.4.0                                ...           4 months ago
  • 0.3.16                                ...           5 months ago
  • 0.3.15                                ...           5 months ago
  • 0.3.14                                ...           6 months ago
  • 0.3.13                                ...           6 months ago
  • 0.3.12                                ...           7 months ago
  • 0.3.11                                ...           7 months ago
  • 0.3.10                                ...           7 months ago
  • 0.3.9                                ...           8 months ago
  • 0.3.8                                ...           8 months ago
  • 0.3.7                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 50
Last Day 0
Last Week 48
Last Month 18
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |