-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (34 loc) · 1.12 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
36
/** @type {import('next').NextConfig} */
module.exports = {
compiler: {
// emotion:
// boolean |
// {
// // default is true. It will be disabled when build type is production.
// sourceMap: boolean,
// // default is 'dev-only'.
// autoLabel: 'never' | 'dev-only' | 'always',
// // default is '[local]'.
// // Allowed values: `[local]` `[filename]` and `[dirname]`
// // This option only works when autoLabel is set to 'dev-only' or 'always'.
// // It allows you to define the format of the resulting label.
// // The format is defined via string where variable parts are enclosed in square brackets [].
// // For example labelFormat: "my-classname--[local]", where [local] will be replaced with the name of the variable the result is assigned to.
// labelFormat: string,
// },
reactStrictMode: true,
swcMinify: true,
},
};
module.exports = {
compiler: {
emotion: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};