0.0.4 • Published 5 years ago
@electerm/antd-dark-theme v0.0.4
antd-dark-theme
antd dark theme config. It is used in webpack less loader for antd user. Visit antd docs for more detail.
Use
npm i -D @electerm/antd-dark-theme
// for webpack config
const theme = require('@electerm/antd-dark-theme')
...
module: {
rules: [
{
test: /\.less$/,
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
// you can specify a publicPath here
// by default it use publicPath in webpackOptions.output
publicPath: '../'
}
},
{
loader: 'css-loader'
},
{
loader: 'less-loader',
options: {
javascriptEnabled: true,
modifyVars: theme
}
}
]
},
Realworld Uses
License
MIT