@tntd/antd-cover
v3.0.4
Published
私有云全家桶样式
Downloads
22
Maintainers
Keywords
Readme
安装模块
npm install @tntd/antd-cover --save
在引入样式的地方引入
@import "~@tntd/antd-cover/index.less";
。此文件代表部分antd的样式强制覆盖。修改目录,例如salaxy的styles/style.less配置文件例如.babelrc中,加载less而非css,修改如下:
[ "import", { "libraryName": "antd", "libraryDirectory": "es", "style": true // 有些可能是css,改成true } ]
修改编译文件webapck中modifyVars如下:
暗黑风格
{
test: /\.less$/,
use: [
devMode ? "style-loader" : MiniCssExtractPlugin.loader,
"css-loader",
{
loader: "less-loader",
options: {
javascriptEnabled: true,
modules: true,
localIndexName: "[name]__[local]___[hash:base64:5]",
modifyVars: {
hack: "true; @import \"~@tntd/antd-cover/tnt.less\";"
}
}
}
]
}