1.0.0 • Published 7 years ago

rx-webpack-plugin v1.0.0

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
7 years ago

rax-webpack-plugin npm Dependency Status Known Vulnerabilities

Webpack plugin for Rax framework.

Install

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

Usage

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

example

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

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

const compiler = webpack(configs);

// ....
1.0.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago