basis vue
VueCli3 构建门户或博客手脚架
基於Vue CLI 4構建的公司入口網站或個人部落格手腳架,開箱即用
externals節點和chainWebpack CDN配置,最後刪除public下面的index.html中CDN注入程式碼即可basis-vue
├── public -- 不进过webpack打开目录
├── src -- 开发目录
├ ├── assets -- 资源文件夹
├ ├ └── css -- css 存放
├ ├ └── js -- js 存放
├ ├ └── img -- 静态图片存放
├ ├── components -- 封装组件
├ ├── lang -- 多语言包
├ ├── views -- 路由页面
├── theme -- element ui 主题 # 克隆项目
git clone https: //github.com/laizuan/basis-vue.git
# 安装依赖
yarn install
# 启动服务
yarn run dev #打包生产包
yarn run build yarn run preview server {
listen 80;
charset utf-8;
server_name localhost;
location / {
root dist; #网站的根目录
index index.html; #默认文件
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
| 科技 | 名稱 | 官網 |
|---|---|---|
| vue | 漸進式JavaScript 框架 | https://cn.vuejs.org/ |
| vue-router | 路由 | https://router.vuejs.org/ |
| vuex | 狀態管理 | https://vuex.vuejs.org/ |
| element-ui | 基於Vue 2.0 的桌面端元件庫 | http://element-cn.eleme.io |
| Headroom | 隱藏或展示頁面元素 | http://www.bootcss.com/p/headroom.js/ |
如果你覺得這個計畫幫助到了你,你可以幫作者買一杯果汁表示鼓勵?
MIT