//定义在全局的变量然后就可以window.*进行访问了interfaceWindow{__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:anyAMap:any}declaremodule"*.module.less"{constclasses:{readonly[key:string]:string};exportdefaultclasses;}使用示例(类似vuescope的效果)#index.module.less文件命名app{font-size:40px;color:#f00;}#在组件中引入importstylesfrom'./index.module.less'hello6.使用ESLintPrettier两个插件来做代码格式校验和自动格式化7.以上操作版本记录{"name":"xxx","version":"0.1.0","private":true,"dependencies":{"@craco/craco":"^6.2.0","@testing-library/jest-dom":"^5.11.4","@testing-library/react":"^11.1.0","@testing-library/user-event":"^12.1.10","@types/jest":"^26.0.15","@types/node":"^12.0.0","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.30.0","antd":"^4.16.13","craco-antd":"^1.19.0","eslint":"^7.32.0","eslint-config-alloy":"^4.3.0","eslint-loader":"^4.0.2","eslint-plugin-react":"^7.25.1","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^7.2.4","react-router-dom":"^5.2.1","react-scripts":"4.0.3","typescript":"^4.1.2","web-vitals":"^1.0.1"},"scripts":{"start":"setPORT=3090&&cracostart","build":"cracobuild","test":"cracotest","eject":"cracoeject","lint":"eslint'{src}/**/*.{ts,tsx,js,jsx}'","lint_fix":"eslint{src}--ext.ts,.tsx,.js,jsx--fix"},"browserslist":{"production":[">0.2%","notdead","notop_miniall"],"development":["last1chromeversion","last1firefoxversion","last1safariversion"]}}搜索今日热闻大行评级丨Jefferies:予微软买入评级目标价400美元告别繁冗,5分钟随心拿捏的年末派对妆来了“全能小钢官方炮”释放激擎魅力试驾体验全新凯翼炫界Pro李谷一悼念前夫病逝,戴玉强忆恩师最后一面,弟子大衣哥惹争议轰炸在深夜打响,美军战斗机的空袭现场被曝光靠谱,拜登亲自下达命令詹姆斯时隔16天复出他本赛季还能超越贾巴尔吗?波兰蠢驴破费上亿只为挽回玩家欢心国际航线燃油政策2023已更新(网易/今日)道达投资手记:赛道股和硬科技下挫难说市场调整到位俄乌激战巴赫穆特小城何以成为前线焦点苹果PK特斯拉电动车市场格局将生变?