web-wallet/webpack.config.js

9 lines
309 B
JavaScript
Raw Normal View History

const webpack = require('webpack');
module.exports = (config, options, targetOptions) => {
config.plugins.push(new webpack.NormalModuleReplacementPlugin(/^crypto$/, 'crypto-browserify'));
config.plugins.push(new webpack.NormalModuleReplacementPlugin(/^stream$/, 'readable-stream'));
return config;
};