- 依赖
node
环境,全局安装
npm install -g webpack webpack-dev-server typescript
- 安装项目依赖
npm install
- 编译、运行
`npm run build`
`npm run dev`
- 浏览器输入
http://localhost:8080/webpack-dev-server/index.html
typescript webpack 初始化模板
node
环境,全局安装npm install -g webpack webpack-dev-server typescript
npm install
`npm run build`
`npm run dev`
http://localhost:8080/webpack-dev-server/index.html
typescript webpack 初始化模板