-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
43 lines (38 loc) · 954 Bytes
/
next.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
const withLess = require('next-with-less');
const path = require('path');
const pathToLessFileWithVariables = path.resolve('./styles/variables.less');
module.exports = withLess({
// Optional: customize Less loader options
lessLoaderOptions: {
// javascriptEnabled: true,
lessOptions: {
modifyVars: {
// "primary-color": "#9900FF",
'@primary-color': '#0050b3',
'border-radius-base': '2px',
},
},
additionalData: content =>
`${content}\n\n@import '${pathToLessFileWithVariables}';`,
},
transpilePackages: [
"antd",
"rc-util",
"@babel/runtime",
"@ant-design/icons",
"@ant-design/icons-svg",
"rc-pagination",
"rc-picker",
"rc-tree",
"rc-table",
],
});
// const nextConfig = {
// transpilePackages: [
// "antd",
// "@babel/runtime",
// "@ant-design/icons",
// "@ant-design/icons-svg",
// ],
// };
// module.exports = nextConfig;