Skip to content
Snippets Groups Projects
patch.js 374 B
Newer Older
  • Learn to ignore specific revisions
  • const f = 'node_modules/@angular-devkit/build-angular/src/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}');
    
      fs.writeFile(f, result, 'utf8', function (err) {
        if (err) return console.log(err);
      });