@packmule/target-pack
Packmule pack to configure the target environment.
Last updated 10 months ago by thasmo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @packmule/target-pack 
SYNC missed versions from official npm registry.

Target Pack

Set the target environment.

Target Pack configures the target environment in which the bundle runs.

Setup

npm install --save-dev @packmule/target-pack

API

TargetPack(target: string)

Options

  • target - Defines the target environment in which the bundle runs.

Usage

Example

Set the target environment.

import Packmule from '@packmule/core';
import TargetPack from '@packmule/target-pack';

const packmule = new Packmule();
packmule.register(new TargetPack('node'));

return packmule.generate();

Example

Set the target environment dynamically.

import Packmule from '@packmule/core';
import TargetPack from '@packmule/target-pack';

const packmule = new Packmule();
packmule.register(
    new TargetPack((compiler) => {
        compiler.apply(new webpack.JsonpTemplatePlugin(options.output), new webpack.LoaderTargetPlugin('web'));
    }),
);

return packmule.generate();

License

MIT


Current Tags

  • 2.0.1-nightly.314                                ...           latest (10 months ago)
  • 2.0.1-next.427                                ...           next (13 hours ago)
  • 2.0.1-nightly.427                                ...           nightly (2 hours ago)

67 Versions

  • 2.0.1-nightly.427                                ...           2 hours ago
  • 2.0.1-next.427                                ...           13 hours ago
  • 2.0.1-nightly.426                                ...           2 days ago
  • 2.0.1-next.426                                ...           2 days ago
  • 2.0.1-next.425                                ...           2 days ago
  • 2.0.1-nightly.424                                ...           3 days ago
  • 2.0.1-next.424                                ...           3 days ago
  • 2.0.1-next.418                                ...           5 days ago
  • 2.0.1-next.417                                ...           6 days ago
  • 2.0.1-nightly.416                                ...           9 days ago
  • 2.0.1-next.416                                ...           10 days ago
  • 2.0.1-nightly.415                                ...           10 days ago
  • 2.0.1-next.415                                ...           11 days ago
  • 2.0.1-next.414                                ...           11 days ago
  • 2.0.1-next.413                                ...           11 days ago
  • 2.0.1-next.412                                ...           11 days ago
  • 2.0.1-next.411                                ...           11 days ago
  • 2.0.1-nightly.410                                ...           a month ago
  • 2.0.1-next.410                                ...           a month ago
  • 2.0.1-nightly.409                                ...           a month ago
  • 2.0.1-next.409                                ...           a month ago
  • 2.0.1-nightly.408                                ...           a month ago
  • 2.0.1-next.408                                ...           a month ago
  • 2.0.1-nightly.407                                ...           2 months ago
  • 2.0.1-next.407                                ...           2 months ago
  • 2.0.1-nightly.406                                ...           2 months ago
  • 2.0.1-next.406                                ...           2 months ago
  • 2.0.1-nightly.405                                ...           2 months ago
  • 2.0.1-next.405                                ...           2 months ago
  • 2.0.1-next.404                                ...           2 months ago
  • 2.0.1-nightly.403                                ...           2 months ago
  • 2.0.1-next.403                                ...           2 months ago
  • 2.0.1-nightly.402                                ...           2 months ago
  • 2.0.1-next.402                                ...           3 months ago
  • 2.0.1-nightly.400                                ...           3 months ago
  • 2.0.1-nightly.395                                ...           3 months ago
  • 2.0.1-nightly.392                                ...           3 months ago
  • 2.0.1-nightly.391                                ...           3 months ago
  • 2.0.1-nightly.389                                ...           4 months ago
  • 2.0.1-nightly.388                                ...           4 months ago
  • 2.0.1-nightly.387                                ...           4 months ago
  • 2.0.1-nightly.386                                ...           4 months ago
  • 2.0.1-nightly.375                                ...           4 months ago
  • 2.0.1-nightly.373                                ...           5 months ago
  • 2.0.1-nightly.372                                ...           5 months ago
  • 2.0.1-nightly.371                                ...           5 months ago
  • 2.0.1-nightly.370                                ...           5 months ago
  • 2.0.1-nightly.369                                ...           5 months ago
  • 2.0.1-nightly.368                                ...           6 months ago
  • 2.0.1-nightly.364                                ...           6 months ago
  • 2.0.1-nightly.363                                ...           6 months ago
  • 2.0.1-nightly.362                                ...           6 months ago
  • 2.0.1-nightly.360                                ...           6 months ago
  • 2.0.1-nightly.358                                ...           6 months ago
  • 2.0.1-nightly.357                                ...           7 months ago
  • 2.0.1-nightly.355                                ...           7 months ago
  • 2.0.1-nightly.353                                ...           8 months ago
  • 2.0.1-nightly.352                                ...           8 months ago
  • 2.0.1-nightly.346                                ...           9 months ago
  • 2.0.1-nightly.342                                ...           9 months ago
  • 2.0.1-nightly.341                                ...           9 months ago
  • 2.0.1-nightly.339                                ...           9 months ago
  • 2.0.1-nightly.328                                ...           9 months ago
  • 2.0.1-nightly.327                                ...           10 months ago
  • 2.0.1-nightly.325                                ...           10 months ago
  • 2.0.1-nightly.316                                ...           10 months ago
  • 2.0.1-nightly.314                                ...           10 months ago
Maintainers (2)
Downloads
Today 11
This Week 11
This Month 191
Last Day 13
Last Week 79
Last Month 95
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |