next.config.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
mnd 0
bc 0
fnc 1
dl 0
loc 21
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
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