rax-webpack-plugin
Webpack plugin for Rax framework.
Install
$ npm install --save-dev rax-webpack-plugin
Usage
var RaxPlugin = ; moduleexports = plugins: // 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: RaxPluginBuiltinModules // Enable include polyfill files includePolyfills: false // Config which polyfill should include, defaut is empty polyfillModules:
config:Object[, options: Object])
MultiplePlatform(Output multiple platform
options
platforms
Array of ['web', 'node', 'weex', 'reactnative']
example
const config = ; const multipleConfig = RaxPlugin; const compiler = ; // ....