-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
48 lines (47 loc) · 1.88 KB
/
webpack.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// const path = require('path');
module.exports = {
target: 'node',
// resolve: {
// fallback: {
// 'fs': false,
// 'tls': false,
// 'net': false,
// 'path': false,
// 'zlib': false,
// 'http': false,
// 'https': false,
// 'stream': false,
// 'crypto': false,
// 'crypto-browserify': require.resolve('crypto-browserify'), //if you want to use this module also don't forget npm i crypto-browserify
// }
// },
// webpack: {
// alias: {
// '~api': path.resolve(__dirname, 'src/api'),
// '~assets': path.resolve(__dirname, 'src/assets'),
// '~components': path.resolve(__dirname, 'src/components'),
// '~constants': path.resolve(__dirname, 'src/constants'),
// '~context': path.resolve(__dirname, 'src/context'),
// '~contracts': path.resolve(__dirname, 'src/contracts'),
// '~deprecated': path.resolve(__dirname, 'src/deprecated'),
// '~enumerations': path.resolve(__dirname, 'src/types/enumerations'),
// '~hooks': path.resolve(__dirname, 'src/hooks'),
// '~logger': path.resolve(__dirname, 'src/logger'),
// '~pages': path.resolve(__dirname, 'src/pages'),
// '~providers': path.resolve(__dirname, 'src/providers'),
// '~redux': path.resolve(__dirname, 'src/redux'),
// '~routes': path.resolve(__dirname, 'src/routes'),
// '~services': path.resolve(__dirname, 'src/services'),
// '~state': path.resolve(__dirname, 'src/state'),
// '~store': path.resolve(__dirname, 'src/store'),
// '~theme': path.resolve(__dirname, 'src/theme'),
// '~types': path.resolve(__dirname, 'src/types'),
// '~utils': path.resolve(__dirname, 'src/utils'),
// '~': path.resolve(__dirname, 'src'),
// 'magic-sdk': path.resolve(
// __dirname,
// 'node_modules/magic-sdk/dist/cjs/index.js'
// ),
// },
// },
};