-
Notifications
You must be signed in to change notification settings - Fork 45
/
craco.config.js
34 lines (31 loc) · 959 Bytes
/
craco.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
const CracoLessPlugin = require("craco-less")
const { join } = require("path")
const nodeModules = (element) => join(__dirname, "node_modules", element)
module.exports = {
webpack: {
alias: {
// Let's ensure we resovle to our own copy of React since when building for production,
// it seems we have multiple copies and if linking `yarn link @dfuse/explorer` also. So
// whatever the environment, let's resolve all `react` import to our own.
react: nodeModules("react"),
},
},
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
"@progress-default-color": "#7d90ff",
"@progress-remaining-color": "#273a4c",
"@progress-radius": "0px",
"@tooltip-bg": "hsl(209, 32%, 31%)",
},
javascriptEnabled: true,
},
},
},
},
],
}