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

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