您现在的位置是:首页 > 正文

webpack2和angular2搭建的项目

2024-02-29 14:34:50阅读 1

webpack2和angular2搭建的项目

github地址:项目链接

  • npm install,安装依赖包
  • npm run dev,启动本地工程,在localhost:1699进行预览

package.json

{
  "name": "angular-webpack",
  "version": "1.0.0",
  "description": "webpack2 & angular2",
  "scripts": {
    "dev": "babel-node ./src/config/dev.js"
  },
  "author": "Travis Lee",
  "license": "ISC",
  "dependencies": {
    "@angular/common": "~4.0.0",
    "@angular/compiler": "~4.0.0",
    "@angular/core": 

网站文章