mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Fixes build issues. Removes warnings.
This commit is contained in:
13
web/patch-zone-js.js
Normal file
13
web/patch-zone-js.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs');
|
||||
const f = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
|
||||
|
||||
fs.readFile(f, 'utf8', function (err,data) {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
var result = data.replace(/node: false/g, 'node: {crypto: true, stream: true, fs: \'empty\'}');
|
||||
|
||||
fs.writeFile(f, result, 'utf8', function (err) {
|
||||
if (err) return console.log(err);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user