Skip to content

Instantly share code, notes, and snippets.

@levino
Created September 7, 2018 14:32
Show Gist options
  • Save levino/2bf0c9df879843fcadc5b38acfeba39a to your computer and use it in GitHub Desktop.
Save levino/2bf0c9df879843fcadc5b38acfeba39a to your computer and use it in GitHub Desktop.
Patch scrypt to load with webpack
diff --git a/node_modules/scrypt/index.js b/node_modules/scrypt/index.js
index 7b13a79..1e40d76 100644
--- a/node_modules/scrypt/index.js
+++ b/node_modules/scrypt/index.js
@@ -1,6 +1,6 @@
"use strict";
-var scryptNative = require("./build/Release/scrypt")
+var scryptNative = require("./build/Release/scrypt.node")
, Crypto = require("crypto")
, Os = require("os");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment