publicPath: '/client/'
},
- externals: {
- webtorrent: 'WebTorrent'
- },
-
/**
* Add additional plugins to the compiler.
*
'ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR,
'API_URL': JSON.stringify(METADATA.API_URL),
+ 'process.version': JSON.stringify(process.version),
'process.env': {
'ENV': JSON.stringify(METADATA.ENV),
'NODE_ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR
}
}),
-/**
+ /**
* Plugin: UglifyJsPlugin
* Description: Minimize all JavaScript output of chunks.
* Loaders are switched into minimizing mode.
node: {
global: true,
crypto: 'empty',
- process: false,
+ fs: 'empty',
+ process: true,
module: false,
clearImmediate: false,
setImmediate: false