text: const webpack = require('webpack')
  const path = require('path')
  
  module.exports = {
    entry: './src/index.js',
    output: {
      path: path.join(__dirname, 'build'),
      filename: 'bundle.js'
    },
    module: {
      loaders: [
        {test: /.js?$/, exclude: /node_modules/, use: 'babel-loader'}
      ]
    },
    target : "electron",
    plugins: [
      new webpack.optimize.UglifyJsPlugin({
        compress: {
          warnings: false,
          screw_ie8: true,
          conditionals: true,
          unused: true,
          comparisons: true,
          sequences: true,
          dead_code: true,
          evaluate: true,
          if_return: true,
          join_vars: true
        },
        output: {
          comments: false
        }
      })
    ]
  }
  