-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
45 lines (42 loc) · 1.02 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
// Copyright 2018-2021 evolution.land authors & contributors
// SPDX-License-Identifier: Apache-2.0
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin')
const CracoLessPlugin = require('craco-less');
module.exports = async function () {
// await ...
return {
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer')
]
}
},
webpack: {
configure: {
resolve: {
plugins: [new TsconfigPathsPlugin({})]
}
}
},
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@text-color': "#FFFFFF",
'@primary-color': '#01D1FF',
'@border-color-base': 'rgba(75,85,99,var(--tw-border-opacity))',
'@border-radius-base': '16px'
},
javascriptEnabled: true,
},
},
},
},
],
}
}