1.1.1 • Published 8 years ago
react-create-fast v1.1.1
react-create-fast
一个让你快速搭建react开发环境的脚手架
安装及使用:
npm install react-create-fast -greact-create-fast [projectName]
启动项目:
cd [projectName]yarn或npm installnpm run dllnpm start
在浏览器地址栏中输入:localhost:3000即可访问
项目打包,运行npm run build即可,项目将打包至dist文件夹内
默认使用技术栈:
reacttypescriptantdstyled-componentsreact-router-domimmutable
你可以根据喜好来install或uninstall它们。
建议:
项目公共样式(包括antd、框架、装饰页)使用less,页面级样式采
用styled-components,以防止样式污染。
DLL :
在webpack.dll.config.babel.js中,默认打包的公共包包括:
entry: {
vendor: ['react', 'react-dom', 'antd', 'react-router-dom', 'immutable']
}你可以根据自己的喜好做删减