-
Notifications
You must be signed in to change notification settings - Fork 6
/
craco.config.js
46 lines (45 loc) · 1.39 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
const CracoLessPlugin = require('craco-less')
const tailwindConfig = require('./tailwind.config')
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@primary-color': tailwindConfig.theme.colors.primary,
'@secondary-color': tailwindConfig.theme.colors.secondary,
'@border-color-base': tailwindConfig.theme.borderColor.DEFAULT,
'@border-color-split': tailwindConfig.theme.borderColor.DEFAULT,
'@border-radius-base': 0,
'@component-background': tailwindConfig.theme.backgroundColor.card,
'@popover-background': tailwindConfig.theme.backgroundColor.card,
'@layout-header-background': tailwindConfig.theme.backgroundColor.sidebar,
'@layout-body-background': tailwindConfig.theme.backgroundColor.page,
'@body-background': tailwindConfig.theme.backgroundColor.page,
'@text-color': '#1E1E1E',
},
javascriptEnabled: true,
},
},
},
},
],
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
devServer: {
proxy: {
'/api': {
target: 'https://alpha.bnb48club.com',
changeOrigin: true,
},
},
},
}