Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 21 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const nextConfig = { |
||
2 | optimizeLibraries: true, |
||
3 | trailingSlash: false, |
||
4 | sassOptions: { |
||
5 | prependData: ` |
||
6 | // ONLY IMPORT FILES THAT CONTAIN SCSS VARIABLES ONLY, and nothing else. |
||
7 | @import "src/styles/config.scss"; |
||
8 | `, |
||
9 | }, |
||
10 | webpack(config) { |
||
11 | // insert js-yaml-loader |
||
12 | config.module.rules.push({ |
||
13 | test: /\.ya?ml$/, |
||
14 | use: 'js-yaml-loader', |
||
15 | }); |
||
16 | |||
17 | return config; |
||
18 | }, |
||
19 | }; |
||
20 | |||
21 | module.exports = nextConfig; |
||
22 |