Remove even more stuff from web dists

This commit is contained in:
Schuyler Cebulskie
2016-11-20 22:40:06 -05:00
parent 7e69475d11
commit f6a60581c4
6 changed files with 35 additions and 9 deletions

View File

@@ -22,9 +22,6 @@ const createConfig = (options) => {
path: __dirname,
filename,
},
resolve: {
descriptionFiles: ['package.json'],
},
module: {
rules: [
{ test: /\.json$/, loader: 'json-loader' },
@@ -32,9 +29,10 @@ const createConfig = (options) => {
],
},
externals: {
'node-opus': { commonjs: 'node-opus' },
opusscript: { commonjs: 'opusscript' },
ws: { commonjs: 'ws' },
opusscript: { commonjs: 'opusscript' },
'node-opus': { commonjs: 'node-opus' },
'tweet-nacl': { commonjs: 'tweet-nacl' },
},
node: {
fs: 'empty',
@@ -42,6 +40,7 @@ const createConfig = (options) => {
tls: 'mock',
child_process: 'empty',
dgram: 'empty',
zlib: 'empty',
__dirname: true,
},
plugins,