Skip to content

Instantly share code, notes, and snippets.

@tech-engine
Created August 21, 2021 12:20
Show Gist options
  • Save tech-engine/98f5ac6cd790145ef6ea4da489c9d1d8 to your computer and use it in GitHub Desktop.
Save tech-engine/98f5ac6cd790145ef6ea4da489c9d1d8 to your computer and use it in GitHub Desktop.
Document Porting An Existing Ethereum DApp To Polyjuice
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