# webpack-react **Repository Path**: codehouse9/webpack-react ## Basic Information - **Project Name**: webpack-react - **Description**: 使用webpack搭建的react环境 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-12 - **Last Updated**: 2021-05-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # babel-loader的使用 # 文件后缀名的省略,和 给文件夹起别名 # 样式文件的加载解析,渲染,分离 # 图片的处理 - 内置plugin - 使用:{test:/\.(png|jpe?g|gif|svg)$/, type: 'asset/resource'} # 终端显示编译进度 - 内置插件 ProgressPlugin - 使用:new webpack.ProgressPlugin() # eslint 代码规范 # 错误信息提示至浏览器 - devServer 中的选项 - 使用: overlay: {error: true} # 任务 1. 使用装饰器@ 2. 高阶函数的使用 3. 类型检测 # 功能 ## 路由 1. 实现返回首页 使用组件:useHistory 2. 子路由跳转 使用组件:withRouter 3. 动态路由 使用组件:useParams 4. 路由传参 使用组件:useLocation ## echarts图标 1. 获取dom 使用组件:useRef 2.