Describe the bug
Used in antdv, but got some wrong styles in the color.less. I don't know where it comes from, although I have checked the various style files.
Show your code
const AntDesignThemePlugin = require("antd-theme-webpack-plugin");
const path = require("path");
const options = {
antDir: path.join(__dirname, "../../node_modules/ant-design-vue"), //antd包位置
stylesDir: path.join(__dirname, "../../src/styles"), //主题文件所在文件夹
varFile: path.join(__dirname, "../../src/styles/variables.less"), // 自定义默认的主题色
mainLessFile: path.join(__dirname, "../../src/styles/index.less"), // 项目中其他自定义的样式(如果不需要动态修改其他样式,该文件可以为空)
outputFilePath: path.join(__dirname, "../../public/color.less"), //提取的less文件输出到什么地方
themeVariables: ["@primary-color","@hover-color"], //要改变的主题变量
indexFileName: "../../public/index.html", // index.html所在位置
generateOnce: false // 是否只生成一次(if you don't want to generate color.less on each chnage in code to make build process fast in development mode, assign it true value. But if you have new changes in your styles, you need to re-run your build process npm start.)
}
const createThemeColorReplacerPlugin = () => new AntDesignThemePlugin(options)
module.exports = createThemeColorReplacerPlugin
Describe the bug Used in antdv, but got some wrong styles in the color.less. I don't know where it comes from, although I have checked the various style files.
Show your code
vue.config.js
Screenshots Right Style should be like this:![image](https://user-images.githubusercontent.com/22169252/84235968-6da8a880-ab29-11ea-921c-99506f79402c.png)
Wrong style like this:
![image](https://user-images.githubusercontent.com/22169252/84235360-4d2c1e80-ab28-11ea-940b-e734efbf9b37.png)
the style code
border: 0 solid #aaa;
caused this problem!Version "antd-theme-webpack-plugin": "^1.3.0", "ant-design-vue": "1.6.2",