【文件属性】:
文件名称:react-starter-boilerplate-hmr:具有React快速刷新,React 17和Webpack 5的React Starter样板
文件大小:105KB
文件格式:ZIP
更新时间:2021-02-09 05:27:11
react boilerplate hmr react-boilerplate css-modules
React启动器样板-hmr
带有React快速刷新和Webpack 5的React Starter样板
产品特点
React17
快速刷新
React路由器5
Webpack 5
语义UI作为CSS框架
CSS自动前缀
具有SourceMapCSS模块
@ babel / plugin-proposal-class-properties
@ babel / plugin-syntax-dynamic-import
按路线和供应商划分代码
看看
用法
安装依赖项
$ yarn
运行开发服务器
$ yarn dev
建造
$ yarn build
将创建一个包含已编译代码的dist目录。
根据您的需求,您可能需要对生产版本进行更多优化。
Webpack捆绑分析器
在开发中运行
$ yarn dev:bundleanalyzer
在生产优化版本上运行
$ yarn build:b
【文件预览】:
react-starter-boilerplate-hmr-master
----postcss.config.js(219B)
----public()
--------index.html(412B)
--------favicon.ico(24KB)
----yarn.lock(230KB)
----webpack.config.js(814B)
----src()
--------index.css(0B)
--------components()
--------index.js(180B)
----.babelrc(207B)
----LICENSE(1KB)
----README.md(2KB)
----build-utils()
--------webpack.dev.js(2KB)
--------build-validations.js(192B)
--------webpack.prod.js(1KB)
--------addons()
--------webpack.common.js(624B)
--------common-paths.js(225B)
----.gitignore(43B)
----package.json(2KB)