1 Star 0 Fork 0

ITzhongzi/ElctronicLicenceFront

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-overrides.js 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
李洪伟 提交于 2018-07-20 14:10 +08:00 . 驾驶证前台代码
const tsImportPluginFactory = require('ts-import-plugin');
const {
getLoader
} = require('react-app-rewired');
const rewireLess = require('react-app-rewire-less');
module.exports = function override(config, env) {
const tsLoader = getLoader(
config.module.rules,
rule => rule.loader && (typeof rule.loader === 'string') && rule.loader.includes('ts-loader')
);
tsLoader.options = {
getCustomTransformers: () => ({
before: [tsImportPluginFactory({
libraryDirectory: 'es',
libraryName: 'antd',
style: true
})]
})
};
config = rewireLess.withLoaderOptions({
modifyVars: {
'@primary-color': '#1DA57A'
}
})(config, env);
return config;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/itzhongzi/ElctronicLicenceFront.git
git@gitee.com:itzhongzi/ElctronicLicenceFront.git
itzhongzi
ElctronicLicenceFront
ElctronicLicenceFront
master

搜索帮助