bookmark/config-overrides.js
2019-06-26 17:48:04 +08:00

18 lines
492 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { override, fixBabelImports, addLessLoader } = require("customize-cra");
module.exports = override(
//antd按需引入
fixBabelImports("import", {
libraryName: "antd",
libraryDirectory: "es",
style: true
}),
//配置less同时通过less的变量覆盖功能配置antd主题
addLessLoader({
//设置css类型生成规则
localIdentName: "[local]--[hash:base64:5]",
javascriptEnabled: true,
// modifyVars: { "@primary-color": "#1DA57A" }
})
);