-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-overrides.js
30 lines (27 loc) · 1.01 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
const path = require('path');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
module.exports = {
paths: function (paths, env) {
// Changing public to static
paths.appPublic = path.resolve(__dirname, 'app/public');
paths.appHtml = path.resolve(__dirname, 'app/public/index.html');
paths.appIndexJs = path.resolve(__dirname, 'app/src/index.tsx');
// paths.appSrc = path.resolve(__dirname, 'app/src');
paths.appSrc = path.resolve(__dirname, '');
return paths;
},
// override: function override(config, env) {
// config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin));
//
// return config;
// }
// jest: function(config) {
// config.collectCoverageFrom = ['app/src/**/*.{js,jsx,ts,tsx}', '!app/src/**/*.d.ts'];
// config.testMatch = [
// '<rootDir>/app/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
// '<rootDir>/app/src/**/*.{spec,test}.{js,jsx,ts,tsx}',
// ];
// config.roots = ['<rootDir>/app/src'];
// return config;
// },
}