React框架搭建单页面应用package.json基本包和依赖包
{
//依赖包 "devDependencies": {
//babel "babel-core": "6.24.1", "babel-loader": "7.0.0", "babel-preset-es2015": "6.24.1", "babel-preset-react": "6.24.1", "babel-preset-stage-0": "6.24.1",
//css & sass "css-loader": "0.28.0", "node-sass": "4.5.2",//安装这包要先安装cnpm ,安装了cnpm后在国内只用cnpm就可以了,速度快。 "postcss-loader": "^2.0.5", //自动添加css前缀,自动考虑兼容性 "sass-loader": "6.0.3", "style-loader": "0.17.0",
//webpack 和 webpack-dev-server "webpack": "2.4.1", "webpack-dev-server": "2.4.5" }, "dependencies": {
//要用es2016更高级的功能,babel必须引用包 "babel-polyfill": "^6.23.0",
//密码加密包 "md5": "2.2.1",
//React radux router "react": "15.5.4", "react-dom": "15.5.4", "react-redux": "4.4.6", "react-router": "3.0.0", "react-router-redux": "4.0.7", "redux": "3.6.0" } }