搭建一个react脚手架,学习webpack内容
1.how -新建项目文件夹,执行npm init -y, 建立package.json -搭建webpack和webpack-cli npm install webpack webpack-cli --save-dev -并且移除 main 入口。这可以防止意外发布你的代码
npm, nvm, nrm, npx, cnpm npm: 是 JavaScript 世界的包管理工具,并且是 Node.js 平台的默认包管理工具 nvm: 不同node版本切换 nrm: 切换npm源 npx: 执行依赖包里的二进制文件 cnpm:淘宝镜像