-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
35 lines (30 loc) · 1.15 KB
/
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
const withAntdLess = require('next-plugin-antd-less');
module.exports = withAntdLess({
// modifyVars: {'@primary-color': '#04f'}, // optional
// lessVarsFilePath: './src/styles/variables.less', // optional
// lessVarsFilePathAppendToEndOfContent: false, // optional
// // optional https://github.com/webpack-contrib/css-loader#object
// cssLoaderOptions: {
// // ...
// mode: 'local',
// localIdentName: __DEV__ ? '[local]--[hash:base64:4]' : '[hash:base64:8]', // invalid! for Unify getLocalIdent (Next.js / CRA), Cannot set it, but you can rewritten getLocalIdentFn
// exportLocalsConvention: 'camelCase',
// exportOnlyLocals: false,
// // ...
// getLocalIdent: (context, localIdentName, localName, options) => {
// return 'whatever_random_class_name';
// },
// },
// for Next.js ONLY
nextjs: {
localIdentNameFollowDev: true, // default false, for easy to debug on PROD mode
},
// Other Config Here...
webpack(config) {
return config;
},
// // ONLY for Next.js 10, if you use Next.js 11, delete this block
// future: {
// webpack5: true,
// },
});