https://github.com/mrgaogang/lucky_vue_template
使用vue2.x+webpack4.x+vuex+vue-router+iview搭建的开发脚手架;多页面打包请见muti-pages分支
https://github.com/mrgaogang/lucky_vue_template
ant-design iview iview3 muti-pages template vue vuex
Last synced: 4 months ago
JSON representation
使用vue2.x+webpack4.x+vuex+vue-router+iview搭建的开发脚手架;多页面打包请见muti-pages分支
- Host: GitHub
- URL: https://github.com/mrgaogang/lucky_vue_template
- Owner: MrGaoGang
- License: mit
- Created: 2019-04-15T16:20:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T13:56:27.000Z (about 4 years ago)
- Last Synced: 2025-01-06T06:11:50.851Z (5 months ago)
- Topics: ant-design, iview, iview3, muti-pages, template, vue, vuex
- Language: JavaScript
- Homepage: https://mrgaogang.github.io/
- Size: 20 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An ads: There are friends who need a vue mobile chart library, please check [here](https://github.com/MrGaoGang/oview)
Others: If you want to build muti-pages by vue ,please see the `muti-pages` branch.
This is a webpack template for vue; the base config contains iview+vuex+vue-router
### Usage [中文](https://github.com/MrGaoGang/lucky_vue_template/blob/master/zh_cn_readme.md)
``` bash
$ npm install -g vue-cli
$ vue init mrgaogang/lucky_vue_template my-project
$ cd my-project
$ npm install
$ npm run dll #only first run
$ npm run dev
```### Directory introduction
```js
|-- lucky_vue
|-- babel.config.js //babel config
|-- index.css //gloabl css
|-- index.html
|-- package-lock.json
|-- package.json
|-- webpack.base.config.js // base build config
|-- webpack.dev.config.js //development environment build config
|-- webpack.prod.config.js //production environment build config
|-- dist // the production environment build folder
| |-- index.html
| |-- css
| |-- fonts
| |-- img
| |-- js
|-- src
|-- App.vue
|-- main.js // the app entry js
|-- modules.js // the commmon read modules js
|-- components // the sub pages
| |-- Home.vue
|-- plugins // global plugins
| |-- iview.js
|-- router // page router
| |-- index.js
|-- server // gloabl server config
| |-- fetch.js // Encapsulated network request js
| |-- index.js
| |-- api // the api constants
| | |-- index.js
| |-- modules // the submodule api request
| |-- home.js
|-- store // gloabl state config
|-- index.js
|-- modules // the submodule state config
|-- home.js
```