-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
52 lines (48 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const withPlugins = require("next-compose-plugins");
const withTranspileModules = require("next-transpile-modules");
module.exports = withPlugins(
[
withTranspileModules([
"@dfds-ui/react-components",
"@dfds-ui/colors",
"@dfds-ui/forms",
"@dfds-ui/icons",
"@dfds-ui/modal",
"@dfds-ui/grid",
"@dfds-platform/business-components",
"@dfds-ui/experiences",
"@dfds-ui/google-places",
]),
],
{
trailingSlash: true,
future: {
webpack5: true,
webpack(config, options) {
config.module.rules.push({
test: /\.test.js$/,
loader: "ignore-loader",
});
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
config.module.rules.push({
test: /\.(eot|woff|woff2)$/,
loader: "ignore-loader",
// use: {
// loader: 'url-@dfds-ui',
// options: {
// limit: 10000,
// name: '[name].[ext]',
// },
// },
});
return config;
},
},
images: {
domains: [],
},
}
);