config-overrides_20190415205048.js 543 Bytes
Newer Older
baiguangyao committed
1 2 3 4
const {
    override,
    fixBabelImports,
    addLessLoader,
5
    addDecoratorsLegacy
baiguangyao committed
6 7 8
} = require("customize-cra");

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