|
|
@ -11,24 +11,24 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
|
|
|
|
|
|
|
|
// add fallback for node modules
|
|
|
|
// add fallback for node modules
|
|
|
|
config.resolve.fallback = { |
|
|
|
config.resolve.fallback = { |
|
|
|
...config.resolve.fallback, |
|
|
|
// ...config.resolve.fallback,
|
|
|
|
"crypto": require.resolve("crypto-browserify"), |
|
|
|
// "crypto": require.resolve("crypto-browserify"),
|
|
|
|
"stream": require.resolve("stream-browserify"), |
|
|
|
// "stream": require.resolve("stream-browserify"),
|
|
|
|
"path": require.resolve("path-browserify"), |
|
|
|
"path": require.resolve("path-browserify"), |
|
|
|
"http": require.resolve("stream-http"), |
|
|
|
// "http": require.resolve("stream-http"),
|
|
|
|
"https": require.resolve("https-browserify"), |
|
|
|
// "https": require.resolve("https-browserify"),
|
|
|
|
"constants": require.resolve("constants-browserify"), |
|
|
|
// "constants": require.resolve("constants-browserify"),
|
|
|
|
"os": false, //require.resolve("os-browserify/browser"),
|
|
|
|
// "os": false, //require.resolve("os-browserify/browser"),
|
|
|
|
"timers": false, // require.resolve("timers-browserify"),
|
|
|
|
// "timers": false, // require.resolve("timers-browserify"),
|
|
|
|
"zlib": require.resolve("browserify-zlib"), |
|
|
|
// "zlib": require.resolve("browserify-zlib"),
|
|
|
|
"fs": false, |
|
|
|
"fs": false, |
|
|
|
"module": false, |
|
|
|
// "module": false,
|
|
|
|
"tls": false, |
|
|
|
// "tls": false,
|
|
|
|
"net": false, |
|
|
|
// "net": false,
|
|
|
|
"readline": false, |
|
|
|
// "readline": false,
|
|
|
|
"child_process": false, |
|
|
|
// "child_process": false,
|
|
|
|
"buffer": require.resolve("buffer/"), |
|
|
|
// "buffer": require.resolve("buffer/"),
|
|
|
|
"vm": require.resolve('vm-browserify'), |
|
|
|
// "vm": require.resolve('vm-browserify'),
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// add externals
|
|
|
|
// add externals
|
|
|
@ -37,6 +37,12 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
solc: 'solc', |
|
|
|
solc: 'solc', |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.module.rules.push({ |
|
|
|
|
|
|
|
test: /\.hbs$/, |
|
|
|
|
|
|
|
type: 'asset/source' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add public path
|
|
|
|
// add public path
|
|
|
|
config.output.publicPath = '/' |
|
|
|
config.output.publicPath = '/' |
|
|
|
|
|
|
|
|
|
|
|