'use strict';
const webpack = require('webpack');
const merge = require('webpack-merge');
const baseConfig = require('./webpack.config.base');

module.exports = merge(baseConfig, {
	devtool: false,

	entry: [
		'babel-polyfill',
		'./main.development'
	],

	output: {
		path: __dirname,
		filename: './main.js'
	},

	plugins: [
		new webpack.optimize.UglifyJsPlugin({
			compressor: {
				warnings: false
			}
		}),
		new webpack.DefinePlugin({
			'process.env': {
				NODE_ENV: JSON.stringify('production')
			}
		})
	],

	target: 'electron-main',

	node: {
		__dirname: false,
		__filename: false
	},

	externals: [
		'electron-config',
		'electron-referer',
		'electron-context-menu',
		'pixiv.js',
		'pixiv-app-api',
		'electron-dl',
		'dot-prop'
	]
});

@@ -743,16 +743,41 @@
 ot-prop'
+,%0A%09%09'pify',%0A%09%09'wallpaper'
 %0A%09%5D%0A%7D);%0A

Fix config