Created
August 21, 2021 12:20
-
-
Save tech-engine/98f5ac6cd790145ef6ea4da489c9d1d8 to your computer and use it in GitHub Desktop.
Document Porting An Existing Ethereum DApp To Polyjuice
This file contains hidden or 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
const path = require('path') | |
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin') | |
const Dotenv = require('dotenv-webpack') | |
module.exports = { | |
entry: './src/app.js', // we need to import this to index.html file | |
output: { | |
filename: 'app.js', | |
path: path.resolve(__dirname, 'dist') | |
}, | |
plugins: [ | |
new NodePolyfillPlugin(), | |
new Dotenv() | |
], | |
resolve: { | |
fallback: { | |
fs: false | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment