-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
41 lines (35 loc) · 947 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
/** @type {import('next').NextConfig} */
/* const nextConfig = {
reactStrictMode: true,
}; */
const withAntdLess = require('next-plugin-antd-less');
module.exports = withAntdLess({
reactStrictMode: true,
// You can directly change the antd less variables here
// modifyVars: { '@primary-color': '#f200ff' },
// Or better still you can specify a path to a file
lessVarsFilePath: './styles/variables.less',
// optional
lessVarsFilePathAppendToEndOfContent: false,
// optional https://github.com/webpack-contrib/css-loader#object
cssLoaderOptions: {},
// Other Config Here...
webpack(config) {
config.module.rules.push({
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'babel-loader',
},
{
loader: '@svgr/webpack',
options: {
babel: false,
icon: true,
},
},
],
});
return config;
},
});