-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathcraco.config.js
More file actions
34 lines (33 loc) · 888 Bytes
/
Copy pathcraco.config.js
File metadata and controls
34 lines (33 loc) · 888 Bytes
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
// eslint-disable-next-line
const CracoAntDesignPlugin = require('craco-antd');
// eslint-disable-next-line
const reactHotReloadPlugin = require('craco-plugin-react-hot-reload');
// eslint-disable-next-line
const path = require('path');
const emotionPresetOptions = {};
// eslint-disable-next-line
const emotionBabelPreset = require("@emotion/babel-preset-css-prop").default(
undefined,
emotionPresetOptions,
);
module.exports = {
babel: {
plugins: [...emotionBabelPreset.plugins],
},
webpack: {
alias: {
src: path.resolve(__dirname, './src/'),
},
},
plugins: [
{
plugin: CracoAntDesignPlugin,
options: {
customizeThemeLessPath: path.join(
__dirname,
'src/styles/variables.less',
),
},
},
],
};