webpack-target-electron-renderer
v0.4.0
Published
webpack target function for electron renderer
Downloads
439
Maintainers
Readme
webpack-target-electron-renderer
webpack target function for electron renderer
Install
$ npm install webpack-target-electron-renderer
Usage
var webpackTargetElectronRenderer = require('webpack-target-electron-renderer');
var options = {
entry: entry,
output: output,
module: {
loaders: loaders
},
devtool: opts.devtool,
resolve: {
extensions: extensions,
packageMains: ['webpack', 'browser', 'web', 'browserify', ['jam', 'main'], 'main']
}
}
options.target = webpackTargetElectronRenderer(options)
See also electron-react-boilerplate.
API
webpackTargetElectronRenderer(options)
options
Required
Type: object
just like the object that you used to export by webpack.config.js
.
License
MIT © C.T. Lin