All Projects → sknightq → Vue Mpc

sknightq / Vue Mpc

multiple pages (multiple entries) based on vue-cli3.x(基于vue-cli3.x创建的多页面应用,每个页面入口又可以创建自己的vue-router)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Mpc

Vue Chat
📲 A web chat application. Vue + node(koa2) + Mysql + socket.io
Stars: ✭ 617 (+536.08%)
Mutual labels:  vue-cli, scss, vue-router
Vue Cli Multipage Bootstrap
vue-cli-multipage-bootstrap demo with vue2+vue-router+vuex+bootstrap+markdown for learning vue2.0
Stars: ✭ 105 (+8.25%)
Mutual labels:  webpack4, vue-cli, vue-router
Vue Admin Webapp
this is a admin project
Stars: ✭ 673 (+593.81%)
Mutual labels:  webpack4, vue-cli, vue-router
Vue Home
🏠 A simple project(Vue Community SPA) which bases on vue+vue-cli+vue-router+axios+ scss.
Stars: ✭ 256 (+163.92%)
Mutual labels:  vue-cli, scss, vue-router
Egg Vue Webpack Boilerplate
Egg Vue Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 1,302 (+1242.27%)
Mutual labels:  webpack4, vue-cli, vue-router
Vue Plan
使用vue+vue-router+vuex+boostrap实现计划表系统
Stars: ✭ 33 (-65.98%)
Mutual labels:  vue-cli, vue-router
Html Sass Babel Webpack Boilerplate
Webpack 4 + Babel + ES6 + SASS + HTML Modules + Livereload
Stars: ✭ 35 (-63.92%)
Mutual labels:  webpack4, scss
Vue Multiple Pages
A multiple Pages Starter use Vue-cli3
Stars: ✭ 1,079 (+1012.37%)
Mutual labels:  webpack4, vue-cli
Vue Admin
基于Vue2、element ui、vue-cli、vuex、vue-router、axios 、echarts后台管理系统demo. 权限管理,用户管理,菜单管理。无限级菜单,下拉树形选择框
Stars: ✭ 1,135 (+1070.1%)
Mutual labels:  vue-cli, vue-router
Vue Music
基于vue2.0的网易云音乐播放器,api来自于NeteaseCloudMusicApi,v2.0为最新版本
Stars: ✭ 855 (+781.44%)
Mutual labels:  vue-cli, vue-router
Nvue
master分支:webpack4实现一个vue的打包的项目,incremental: 实现增量模块打包
Stars: ✭ 55 (-43.3%)
Mutual labels:  webpack4, vue-cli
Vuejs Fujun
vue/vue-router/vuex/axios 仿肤君试用小程序
Stars: ✭ 68 (-29.9%)
Mutual labels:  vue-cli, vue-router
Vue Auth Boilerplate
🔑 Vue.js scalable boilerplate with user authentication.
Stars: ✭ 31 (-68.04%)
Mutual labels:  vue-cli, vue-router
Tic Tac Vue
A simple Tic-Tac-Toe game written in Vue.
Stars: ✭ 29 (-70.1%)
Mutual labels:  scss, vue-router
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+947.42%)
Mutual labels:  webpack4, scss
Vue Gok
vue2.0-王者荣耀助手
Stars: ✭ 27 (-72.16%)
Mutual labels:  vue-cli, vue-router
Pretty Vendor
[零食商贩] - 基于vue全家桶 + koa2 + sequelize + mysql 搭建的移动商城应用
Stars: ✭ 57 (-41.24%)
Mutual labels:  vue-cli, vue-router
Vue Demo
Vue.js 示例项目 · 简易留言板。本项目拥有完善的文档说明与注释,让您快速上手 Vue.js 开发 SPA。Webpack / ES6 + Babel / Vue Router / (Vue Resource?) / (Vue Validator?) / (Vuex?) —— An Excellent Vue Starter with Best Practice / 最佳实践
Stars: ✭ 1,225 (+1162.89%)
Mutual labels:  vue-cli, vue-router
Vue element shopmanage
基于vue+element的商品后台管理
Stars: ✭ 75 (-22.68%)
Mutual labels:  vue-cli, vue-router
Vue Taobao
😀史诗级😀巨仿淘宝手机端(vue2.0以上+vue-router+axios+vuex+webpack+betterscroll等)
Stars: ✭ 85 (-12.37%)
Mutual labels:  vue-cli, vue-router

Multiple pages based on vue-cli3.x

Versions

Multiple pages based on vue-cli3.x

based on vue-cli3.x

Multiple pages based on vue-cli2.x

based on vue-cli2.x

Company Structure

structure

Description

Because of the update of the vue-cli, I upated my project. Thanks for the vue-cli3.x, I found that configuring the multiple pages was easier. However, since my company's structure, I added some custom settings.

想看中文! 因为vue-cli的更新,我也更新了我的项目。感谢vue-cli3.x让多页面配置变得更简单了。但是由于我公司架构原因,我增加一些自定义的配置。
  1. Add a new cli : npm run site --name=[site-name], 'site-name' comes from in config/sites.config.js, default is 'dev'
  2. In build/prebuild, I use the template of nginx config file (config/nginx.base.conf) to create a new configuration for production, which is deployed in docker
  3. Add v-router for some entries, so these entries will become a single page with front-end router
想看中文!

1. 增加了一个新命令:npm run site --name=[site-name],'site-name'来自 config/sites.config.js, 缺省的话就是'dev'

2. 在 build/prebuild中,我会利用nginx config模板(config/nginx.base.conf)来生成一个新的用于线上docker里的nginx.conf

3. 对于某些入口新增了v-router配置,实现多页面里某个入口单页面

Deploy(deploy files are not uploaded)

1. Static Files

npm run site --name=[site-name]

2. With Docker

In 'cli' folder, there are two deploy files. One is for building a docker image. The other is for deploying the docker image to production environment if the environment is accessible (can use ssh command)

cd [project]
bash ./cli/pub_docker.sh
bash ./cli/deploy.sh

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Compiles and minifies for specified site

npm run site --name=[site-name]

Compiles and minifies an UMD UI lib (imported by scripts tag)

npm run build-lib

Compiles and minifies components with UMD style (import a single component by scripts tag)

npm run build-all

Compiles and minifies an icon lib (imported by scripts tag)

npm run build-icons

Run your tests

npm run test

Lints and fixes files

npm run lint

TODO List

  • [x] add a demo
  • [x] add a image for company structure
  • [x] remove unuseful file in demo
  • [x] using Chinese
  • [x] modify my english syntax
  • [x] more detail
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].