# rx-webpack-plugin

> Webpack plugin for Rax framework.

Latest version **1.0.0** (published 2017-01-09) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install rx-webpack-plugin
pnpm add rx-webpack-plugin
yarn add rx-webpack-plugin
bun add rx-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-09 |
| First published | 2016-10-24 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8019 |
| Maintainers | yuanyan |

## Links

- npm: https://www.npmjs.com/package/rx-webpack-plugin
- Repository: https://github.com/alibaba/rax
- Homepage: https://github.com/alibaba/rax#readme
- Issues: https://github.com/alibaba/rax/issues
- npm.io page: https://npm.io/package/rx-webpack-plugin

## Dependencies (6)

- [babylon](https://npm.io/package/babylon.md) ^6.14.1
- [babel-types](https://npm.io/package/babel-types.md) ^6.19.0
- [loader-utils](https://npm.io/package/loader-utils.md) ^0.2.16
- [babel-traverse](https://npm.io/package/babel-traverse.md) ^6.19.0
- [babel-generator](https://npm.io/package/babel-generator.md) ^6.19.0
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0

## Recent versions

- 1.0.0 (latest) — 2017-01-09
- 0.4.0 — 2016-11-24
- 0.3.0 — 2016-11-24
- 0.2.1 — 2016-11-23
- 0.2.0 — 2016-11-23
- 0.1.0 — 2016-11-22
- 0.0.8 — 2016-11-18
- 0.0.7 — 2016-11-16
- 0.0.6 — 2016-11-15
- 0.0.5 — 2016-11-15
- 0.0.4 — 2016-11-07
- 0.0.3 — 2016-10-24
- 0.0.1 — 2016-10-24

## README

# rax-webpack-plugin [![npm](https://img.shields.io/npm/v/rax-webpack-plugin.svg)](https://www.npmjs.com/package/rax-webpack-plugin) [![Dependency Status](https://david-dm.org/alibaba/rax.svg?path=packages/rax-webpack-plugin)](https://david-dm.org/alibaba/rax.svg?path=packages/rax-webpack-plugin) [![Known Vulnerabilities](https://snyk.io/test/npm/rax-webpack-plugin/badge.svg)](https://snyk.io/test/npm/rax-webpack-plugin)

> Webpack plugin for Rax framework.

## Install

```sh
$ npm install --save-dev rax-webpack-plugin
```

## Usage

```javascript
var RaxPlugin = require('rax-webpack-plugin');

module.exports = {
  plugins: [
    new RaxPlugin({
      // Target format: `bundle`, `umd` or `factory`(build for builtin module format), default is umd
      target: 'umd',
      // Only for `bundle` target, default is '// {"framework" : "Rax"}'
      frameworkComment: '// {"framework" : "Rax"}',
      // component mode build config
      moduleName: 'rax',
      globalName: 'Rax',
      // Enable external builtin modules, default is false
      externalBuiltinModules: false,
      // Config which builtin modules should external, default config is define in `RaxPlugin.BuiltinModules`
      builtinModules: RaxPlugin.BuiltinModules,
      // Enable include polyfill files
      includePolyfills: false,
      // Config which polyfill should include, defaut is empty
      polyfillModules: [],
    })
  ]
}
```

### MultiplePlatform(<config:Object>[, options: Object])

Output multiple platform

#### options

- `platforms` Array of ['web', 'node', 'weex', 'reactnative']

example

```javascript
const config = require('webpack.config.js');

const multipleConfig = RaxPlugin.MultiplePlatform(config, {
  platforms: ['web', 'weex']
});

const compiler = webpack(configs);

// ....
```

---
_Source: https://npm.io/package/rx-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
