Skip to content

A modern Vue.js multiple pages cli which uses Vue 2, Webpack4, and Element UI (Thanks for your star)(Vue2、ElementUI多页应用脚手架)

License

Notifications You must be signed in to change notification settings

luorijin/vue-multiple-pages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-multiple-pages

A modern Vue.js multiple pages cli which uses Vue 2, Webpack4, and Element-UI

Features

  1. Vue2
  2. Webpack4
  3. ElementUI
  4. Postcss(autoprefixer default)
  5. Less
  6. Sass

Get Started

Init Project

$ npm install -g vue-cli
$ vue init Plortinus/vue-multiple-pages new-project
$ cd new-project
$ npm install

Dev

# serve with hot reload at localhost:8010
$ npm run dev

visit http://localhost:8010/user/login.html

visit http://localhost:8010/user/index.html

visit http://localhost:8010/customer/index.html

Build

$ npm run build
$ node server.js #listen 2333 port

visit http://localhost:2333/user/login.html

visit http://localhost:2333/user/index.html

visit http://localhost:2333/customer/index.html

Folder Structure

.
├── README.md
├── build // webpack config
│   ├── webpack.base.conf.js
│   ├── webpack.dev.conf.js
│   └── webpack.prod.conf.js
├── dist // dist
│   ├── assets
│   │   ├── css
│   │   │   ├── commons.css
│   │   │   ├── commons.css.map
│   │   │   ├── customer
│   │   │   │   ├── home.css
│   │   │   │   ├── home.css.map
│   │   │   │   ├── home2.css
│   │   │   │   └── home2.css.map
│   │   │   └── user
│   │   │       ├── index.css
│   │   │       ├── index.css.map
│   │   │       ├── login.css
│   │   │       └── login.css.map
│   │   ├── img
│   │   │   └── element-icons.6f0a763.ttf
│   │   └── js
│   │       ├── commons.js
│   │       ├── commons.js.map
│   │       ├── customer
│   │       │   ├── home.js
│   │       │   ├── home.js.map
│   │       │   ├── home2.js
│   │       │   └── home2.js.map
│   │       └── user
│   │           ├── index.js
│   │           ├── index.js.map
│   │           ├── login.js
│   │           └── login.js.map
│   ├── customer
│   │   ├── home.html
│   │   └── home2.html
│   ├── logo.png
│   └── user
│       ├── index.html
│       └── login.html
├── package.json
├── postcss.config.js
├── server.js
└── src
    ├── assets
    │   ├── css
    │   └── img
    │       └── logo.png
    ├── components
    │   └── modal.vue
    └── pages
        ├── customer
        │   ├── home
        │   │   ├── app.html
        │   │   ├── app.js
        │   │   └── app.vue
        │   └── home2
        │       ├── app.html
        │       ├── app.js
        │       └── app.vue
        └── user
            ├── index
            │   ├── app.html
            │   ├── app.js
            │   └── app.vue
            └── login
                ├── app.html
                ├── app.js
                └── app.vue

Inspired by element-starter

License

MIT

About

A modern Vue.js multiple pages cli which uses Vue 2, Webpack4, and Element UI (Thanks for your star)(Vue2、ElementUI多页应用脚手架)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.6%
  • Vue 33.5%
  • HTML 8.9%