Skip to content

Commit

Permalink
Initialized sCrypt.
Browse files Browse the repository at this point in the history
  • Loading branch information
1w2w1qw committed Aug 13, 2023
1 parent 12b5e17 commit f80077b
Show file tree
Hide file tree
Showing 8 changed files with 1,707 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.env
/artifacts
scrypt.index.json
22 changes: 22 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

module.exports = function override(config, env) {

config.resolve.fallback = {
fs: false,
os: false,
path: false,
module: false
}

const scopePluginIndex = config.resolve.plugins.findIndex(
({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin'
);

config.resolve.plugins.splice(scopePluginIndex, 1);

config.plugins.push(new NodePolyfillPlugin({
excludeAliases: ['console']
}))
return config;
}
Loading

0 comments on commit f80077b

Please sign in to comment.