diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-07-28 16:20:27 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-07-28 16:20:27 -0400 |
| commit | d35e0862e6b60fe3c4f823371627359f3ce3e68b (patch) | |
| tree | d98b788eb1abf0a8814207b993b4e22efe711deb /node_modules/discord.js/webpack.config.js | |
| parent | 20993df62e7e38ed43428aafa5981afc3543bdea (diff) | |
| download | AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.gz AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.bz2 AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.zip | |
Removing node modules (go get them yourself :P)
Diffstat (limited to 'node_modules/discord.js/webpack.config.js')
| -rw-r--r-- | node_modules/discord.js/webpack.config.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/node_modules/discord.js/webpack.config.js b/node_modules/discord.js/webpack.config.js deleted file mode 100644 index 501279e..0000000 --- a/node_modules/discord.js/webpack.config.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - ONLY RUN BUILDS WITH `npm run web-dist`! - DO NOT USE NORMAL WEBPACK! IT WILL NOT WORK! -*/ - -const webpack = require('webpack'); -const createVariants = require('parallel-webpack').createVariants; -const version = require('./package.json').version; - -const createConfig = (options) => { - const plugins = [ - new webpack.DefinePlugin({ 'global.GENTLY': false }), - ]; - - if (options.minify) plugins.push(new webpack.optimize.UglifyJsPlugin({ minimize: true })); - - const filename = `./webpack/discord${process.env.VERSIONED === 'false' ? '' : '.' + version}${options.minify ? '.min' : ''}.js`; // eslint-disable-line - - return { - entry: './src/index.js', - output: { - path: __dirname, - filename, - }, - module: { - rules: [ - { test: /\.md$/, loader: 'ignore-loader' }, - ], - }, - node: { - fs: 'empty', - dns: 'mock', - tls: 'mock', - child_process: 'empty', - dgram: 'empty', - zlib: 'empty', - __dirname: true, - }, - plugins, - }; -}; - -module.exports = createVariants({}, { minify: [false, true] }, createConfig); |
