forked from iron-fish/node-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
30 lines (28 loc) · 988 Bytes
/
config-overrides.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
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path')
const { copySync } = require('fs-extra')
copySync(__dirname + '/types', __dirname + '/src/types', { overwrite: true })
copySync(__dirname + '/versel', __dirname + '/src', { overwrite: true })
module.exports = function override(config) {
//do stuff with the webpack config...
return {
...config,
resolve: {
...config?.resolve,
fallback: {
...config?.resolve?.fallback,
stream: false,
},
alias: {
Components: path.join(__dirname, './src/components'),
Hooks: path.join(__dirname, './src/hooks'),
Routes: path.join(__dirname, './src/routes'),
Svgx: path.join(__dirname, './src/svgx'),
Utils: path.join(__dirname, './src/utils'),
Types: path.join(__dirname, './src/types'),
Data: path.join(__dirname, './src/data'),
Providers: path.join(__dirname, './src/providers'),
},
},
}
}