mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user