vue-template
A Vue.js template
5,128
| Install | |
|---|---|
npm install vue-template |
|
| Latest Version: | 1.0.3 |
| Vue: | 1 |
| Last Updated: | Sep 5, 2016 |
| Links: | npm |
Maintainer: sysutangzxcody
vue-template
由 https://github.com/vuejs/vue-cli 下的 webpack 模板改编而成,更加符合自己 vue.js 开发的脚手架。
修改的地方
安装了 less less-loader 在 vue 模板里
$npm install --save-dev less less-loader
config/index.js 下的 build 的属性 assetsPublicPath 改为 './' ,执行 npm run build 以后 html 文件引用的 css和js 文件是相对路径,可以在 file:// 下运行
src/ 下的文件以及 index.hmtl 都进行了一定的删减,更加轻便。
使用方法
# install vue-template
npm install vue-template or bower install vue-template(and copy files from node_modules or bower_components to your project)
or
git clone https://github.com/bear-front-end/vue-template.git(this repository)
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.3 | ^1.0.21 | ||
| 1.0.2 | ^1.0.21 | ||
| 1.0.1 | ^1.0.21 | ||
| 1.0.0 | ^1.0.21 |