-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
30 lines (30 loc) · 830 Bytes
/
next.config.js
File metadata and controls
30 lines (30 loc) · 830 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
module.exports = {
reactStrictMode: true,
images: {
domains: ["source.unsplash.com", "https://source.unsplash.com/random"],
},
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,
use: "raw-loader",
});
return config;
},
transpilePackages: ["@mui/system", "@mui/material", "@mui/icons-material"],
modularizeImports: {
"@mui/material/?(((\\w*)?/?)*)": {
transform: "@mui/material/{{ matches.[1] }}/{{member}}",
},
"@mui/icons-material/?(((\\w*)?/?)*)": {
transform: "@mui/icons-material/{{ matches.[1] }}/{{member}}",
},
},
// modularizeImports: {
// "@mui/icons-material": {
// transform: "@mui/icons-material/{{member}}",
// },
// "@mui/material": {
// transform: "@mui/material/{{member}}",
// },
// },
};