scroll-wrapper
v1.1.4
Published
猫粮项目 - 前端脚手架
Downloads
8
Maintainers
Readme
猫粮项目 - 前端脚手架
Project development template (React)
使用说明
1、npm install // 下载依赖包
2、npm run dll // 处理公共依赖,可按需修改第三方依赖
3、npm run dev // 开发环境使用
4、npm run build // 打包文件到dist目录
辅助指令
npm run zip 打包dist下代码到release.zip
注意:
1、开发环境下由于
style-loader
引入样式滞后,导致一些问题,比如echarts图表未渲染成功,可以通过style直接设置height/width
解决当前问题,当然在生产环境下将css单独打包并不会有问题2、使用HMR方式监控代码,修改index.html和src/static下静态被复制的文件无法实现热更新