webpack 插件依赖
webpack 插件依赖
安装自动化工具 webpack
npm i webpack --save
安装开发服务器 webpack-dev-server
npm i --save-dev webpack-dev-server
// 启动命令 webpack-dev-save --progress
react
npm i --save react react-dom jsx-loader
ES6语法 需安装babel
npm i --save babel-core babel-loader babel-preset-es2015 babel-preset-react babel-preset-stage-0
然后添加.babelrc文件
{
"presets": [
"es2015",
"stage-0",
"react"
]
}