Update use-in-typescript.zh-CN.md

react-app-rewire的less插件说明用例缺少env参数
This commit is contained in:
zhouzhih 2017-12-17 14:55:40 +08:00 committed by 偏右
parent a3c53523c2
commit 6cdaa03c7f

View File

@ -178,7 +178,7 @@ $ yarn add react-app-rewire-less --dev
const { getLoader } = require("react-app-rewired");
+ const rewireLess = require('react-app-rewire-less');
module.exports = function override(config) {
module.exports = function override(config,env) {
const tsLoader = getLoader(
config.module.rules,
rule =>