|
@ -51,15 +51,24 @@ module.exports = { |
|
|
}, { |
|
|
}, { |
|
|
loader: 'less-loader', // compiles Less to CSS |
|
|
loader: 'less-loader', // compiles Less to CSS |
|
|
+ options: { |
|
|
+ options: { |
|
|
+ lessOptions: { |
|
|
+ modifyVars: { |
|
|
+ modifyVars: { |
|
|
+ 'primary-color': '#1DA57A', |
|
|
+ 'primary-color': '#1DA57A', |
|
|
+ 'link-color': '#1DA57A', |
|
|
+ 'link-color': '#1DA57A', |
|
|
+ 'border-radius-base': '2px', |
|
|
+ 'border-radius-base': '2px', |
|
|
|
|
|
+ }, |
|
|
|
|
|
+ javascriptEnabled: true, |
|
|
|
|
|
+ }, |
|
|
+ }, |
|
|
|
|
|
+ javascriptEnabled: true, |
|
|
+ }, |
|
|
+ }, |
|
|
|
|
|
+ // less-loader@6+ https://github.com/webpack-contrib/less-loader#lessoptions |
|
|
|
|
|
+ // options: { |
|
|
|
|
|
+ // lessOptions: { |
|
|
|
|
|
+ // modifyVars: { |
|
|
|
|
|
+ // 'primary-color': '#1DA57A', |
|
|
|
|
|
+ // 'link-color': '#1DA57A', |
|
|
|
|
|
+ // 'border-radius-base': '2px', |
|
|
|
|
|
+ // }, |
|
|
|
|
|
+ // javascriptEnabled: true, |
|
|
|
|
|
+ // }, |
|
|
|
|
|
+ // }, |
|
|
}], |
|
|
}], |
|
|
// ...other rules |
|
|
// ...other rules |
|
|
}], |
|
|
}], |
|
@ -198,14 +207,22 @@ module.exports = { |
|
|
}, { |
|
|
}, { |
|
|
loader: 'less-loader', // compiles Less to CSS |
|
|
loader: 'less-loader', // compiles Less to CSS |
|
|
+ options: { |
|
|
+ options: { |
|
|
+ lessOptions: { |
|
|
+ modifyVars: getThemeVariables({ |
|
|
+ modifyVars: getThemeVariables({ |
|
|
+ dark: true, // 开启暗黑模式 |
|
|
+ dark: true, // 开启暗黑模式 |
|
|
+ compact: true, // 开启紧凑模式 |
|
|
+ compact: true, // 开启紧凑模式 |
|
|
+ }), |
|
|
+ }), |
|
|
+ javascriptEnabled: true, |
|
|
+ javascriptEnabled: true, |
|
|
|
|
|
+ }, |
|
|
|
|
|
+ }, |
|
|
+ }, |
|
|
|
|
|
+ // less-loader@6+ https://github.com/webpack-contrib/less-loader#lessoptions |
|
|
|
|
|
+ // options: { |
|
|
|
|
|
+ // lessOptions: { |
|
|
|
|
|
+ // modifyVars: getThemeVariables({ |
|
|
|
|
|
+ // dark: true, // 开启暗黑模式 |
|
|
|
|
|
+ // compact: true, // 开启紧凑模式 |
|
|
|
|
|
+ // }), |
|
|
|
|
|
+ // javascriptEnabled: true, |
|
|
|
|
|
+ // }, |
|
|
|
|
|
+ // }, |
|
|
}], |
|
|
}], |
|
|
}], |
|
|
}], |
|
|
}; |
|
|
}; |
|
|