将mvvm项目改造成基于webpack的实现
# npm install webpack webpack-dev-server webpack-merge --save-dev
# npm run build
安装
# npm install babel-core babel-loader babel-preset-env --save-dev
配置
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}]
]
}
# git clone https://github.com/liyanlong/mvvm
# cd mvvm
# npm install
# npm run dev
- Observe
- Dep
- Watcher
- MVVM
- Compiler