Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
COPY package-lock.json ./
COPY config-overrides.js ./

RUN npm install --silent

Expand Down
20 changes: 20 additions & 0 deletions src/client/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const webpack = require('webpack');

module.exports = function override(config, env) {
config.resolve.fallback = {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
vm: require.resolve("vm-browserify"),
process: require.resolve("process/browser"),
util: require.resolve("util/"),
buffer: require.resolve("buffer/"),
};

config.plugins.push(
new webpack.ProvidePlugin({
process: 'process/browser',
})
);

return config;
};
Loading