forked from hechuanhua/H5Designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-overrides.js
35 lines (34 loc) · 1.06 KB
/
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
31
32
33
34
35
const { override, fixBabelImports, addLessLoader, addWebpackAlias } = require("customize-cra");
const path = require("path");
module.exports = {
// The Webpack config
webpack: override(
// ...add your webpack config
addWebpackAlias({
'@/*': path.resolve('src/*')
})
),
// The Jest config
// jest: function(config) {
// // ...add your jest config customisation...
// return config;
// },
// create a webpack dev server
// devServer: function(configFunction) {
// return function(proxy, allowedHost) {
// const config = configFunction(proxy, allowedHost);
// const fs = require('fs');
// config.https = {
// key: fs.readFileSync(process.env.REACT_HTTPS_KEY, 'utf8'),
// cert: fs.readFileSync(process.env.REACT_HTTPS_CERT, 'utf8'),
// ca: fs.readFileSync(process.env.REACT_HTTPS_CA, 'utf8'),
// passphrase: process.env.REACT_HTTPS_PASS
// };
// return config;
// };
// },
// paths: function(paths, env) {
// // ...add your paths config
// return paths;
// },
}