-
Notifications
You must be signed in to change notification settings - Fork 0
/
craco.config.js
33 lines (32 loc) · 1.03 KB
/
craco.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const webpack = require('webpack');
module.exports = {
webpack: {
plugins: {
add: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser.js',
})
]
},
configure: {
resolve: {
fallback: {
'assert': require.resolve('assert'),
'BigInt': require.resolve('big-integer'),
'constants': false,
'crypto': false,
'fs': false,
'http': require.resolve('stream-http'),
'https': require.resolve('https-browserify'),
'os': require.resolve('os-browserify/browser'),
'path': false,
'stream': require.resolve('stream-browserify'),
'tty': false,
'url': false,
'zlib': false
}
},
},
},
};