Package.registerBuildPlugin

package.js

Package.registerBuildPlugin([options])

Define a build plugin. A build plugin extends the build process for apps and packages that use this package. For example, the coffeescript package uses a build plugin to compile CoffeeScript source files into JavaScript.

Options

name String

A cosmetic name, must be unique in the package.

use String or Array of Strings

Meteor packages that this plugin uses, independent of the packages specified in api.onUse.

sources Array of Strings

The source files that make up the build plugin, independent from api.addFiles.

npmDependencies Object

An object where the keys are NPM package names, and the values are the version numbers of required NPM packages, just like in Npm.depends.

doc_Meteor
2016-05-29 17:23:45
Comments
Leave a Comment

Please login to continue.