Miss any of our Open RFC calls?Watch the recordings here! »

webpack-target-electron-renderer

0.4.0 • Public • Published

webpack-target-electron-renderer

NPM version Build Status Test coverage Dependency Status

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

Install

npm i webpack-target-electron-renderer

DownloadsWeekly Downloads

536

Version

0.4.0

License

MIT

Last publish

Collaborators

  • avatar