-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add craco and browserify packages (#542)
* Add craco and browserify Signed-off-by: Manank Patni <[email protected]> * Remove react-app-rewired Signed-off-by: Manank Patni <[email protected]> * Change admin to deployer account in case of testnet Signed-off-by: Manank Patni <[email protected]> --------- Signed-off-by: Manank Patni <[email protected]>
- Loading branch information
Showing
7 changed files
with
3,234 additions
and
4,877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { ProvidePlugin } = require("webpack") | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: { | ||
ignoreWarnings: [/Failed to parse source map/], | ||
resolve: { | ||
fallback: { | ||
assert: require.resolve("assert/"), | ||
crypto: require.resolve("crypto-browserify/"), | ||
http: require.resolve("stream-http/"), | ||
https: require.resolve("https-browserify/"), | ||
os: require.resolve("os-browserify/browser"), | ||
stream: require.resolve("stream-browserify/"), | ||
url: require.resolve("url/"), | ||
util: require.resolve("util/"), | ||
fs: false | ||
} | ||
} | ||
}, | ||
plugins: [ | ||
new ProvidePlugin({ | ||
Buffer: ["buffer", "Buffer"] | ||
}) | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.