基于rollup打包的一个简单的react项目
项目关键字
react
react-redux
rollup
目前rollup到目前为止不支持热更新,只支持了打包成budnle.js
,然后通过打开html访问。
运行本项目
git clone https://github.com/nighthary/rollup-react.git
cd rollup-react
npm i
npm run build
open ./public/index.html
本项目为博客用Rollup打包React项目的配套代码,有兴趣的可以移步这里继续阅读。