-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
29 lines (26 loc) · 940 Bytes
/
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
const withLess = require("@zeit/next-less");
module.exports = withLess({
webpack: (config, options) => {
config.module.rules.push({
test: /\.less$/,
use: [
{
loader: "less-loader", // compiles Less to CSS
options: {
modifyVars: {
"primary-color": "#317A4F",
"grid-columns": 12,
"screen-xxl": "1200",
"layout-header-padding": "0 0",
"layout-header-height": "159px"
// or
// hack: `true; @import "./styles/themes/dark.less";` // Override with less file
},
javascriptEnabled: true
}
}
]
});
return config;
}
});