forked from stakwork/sphinx-win-linux-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
38 lines (35 loc) · 940 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
31
32
33
34
35
36
37
38
const {
override,
babelInclude,
addDecoratorsLegacy,
disableEsLint,
removeModuleScopePlugin,
addWebpackExternals
} = require("customize-cra");
const path = require('path');
module.exports = override(
removeModuleScopePlugin(),
addDecoratorsLegacy(),
disableEsLint(),
babelInclude([
path.resolve("src"),
path.resolve("web")
]),
addWebpackExternals({
realm:'RealmStub'
})
)
// const path = require('path');
// const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
// module.exports = {
// webpack: override(
// addDecoratorsLegacy(),
// disableEsLint(),
// removeModuleScopePlugin(),
// ),
// paths: function (paths, env) {
// paths.appIndexJs = path.resolve(__dirname, 'web/index.tsx');
// paths.appSrc = path.resolve(__dirname, 'web');
// return paths;
// },
// }