config-overrides_20190415122538.js 492 Bytes
Newer Older
baiguangyao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const {
    override,
    fixBabelImports,
    addLessLoader,
} = require("customize-cra");

module.exports = override(
    fixBabelImports("import", {
        libraryName: "antd-mobile", 
        libraryDirectory: "es", 
        style: true // change importing css to less
    }),
    addLessLoader({
        javascriptEnabled: true,
        modifyVars: { '@primary-color': '#1DA57A' },
16
        localIdentName: '[local]--[hash:base64:5]' // 自定义 CSS Modules 的 localIdentName
baiguangyao committed
17 18
    }),
)