update browser stuff and browser eslint (#1938)

* Update browser.js

* Update .eslintrc.json

* Update package.json

* Update package.json

* stop doing manually what webpack can do for us

* Update .eslintrc.json

* Update package.json
This commit is contained in:
Gus Caplan
2017-09-24 15:01:47 -05:00
committed by Amish Shah
parent 82841c6ce1
commit 6ce9a8743f
4 changed files with 7 additions and 16 deletions

View File

@@ -12,11 +12,6 @@ const createConfig = options => {
const plugins = [
new webpack.DefinePlugin({ 'global.GENTLY': false }),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.DefinePlugin({
'process.env': {
__DISCORD_WEBPACK__: '"true"',
},
}),
];
if (options.minify) {
@@ -31,10 +26,12 @@ const createConfig = options => {
const filename = `./webpack/discord${process.env.VERSIONED === 'false' ? '' : '.' + version}${options.minify ? '.min' : ''}.js`; // eslint-disable-line
return {
entry: './browser.js',
entry: './src/index.js',
output: {
path: __dirname,
filename,
library: 'Discord',
libraryTarget: 'window',
},
module: {
rules: [