【文件属性】:
文件名称:webpack4-react:使用webpack4构建的React项目脚手架,默认使用antd,redux
文件大小:96KB
文件格式:ZIP
更新时间:2021-05-18 14:07:00
JavaScript
Introduction
技术栈:
webpack
antd
redux
React
React-Router-Dom
fetch(whatwg-fetch)
特性:
可使用动态import或bundle-loader(require.ensure)进行页面异步加载
使用react-hot-loader实现热加载
请求模块封装fetch,并支持添加请求前后的回调事件。
babel配置
"presets": [
["env", {
"modules": false
}],
"react",
],
"env": {
"development": {
"plugins": ["react-hot-loader/babel"]
}
},
"plugins": [
"transform-decorators",
【文件预览】:
webpack4-react-master
----.babelrc(1KB)
----webpack.prod.js(4KB)
----package.json(2KB)
----index.html(293B)
----src()
--------reducers()
--------app()
--------pages()
--------actions()
--------utils()
--------DB()
--------modules()
--------store()
----.gitignore(475B)
----webpack.config.js(7KB)
----README.md(1KB)
----yarn.lock(266KB)
----postcss.config.js(293B)