1 Star 0 Fork 0

丁窍 / vue2-multipage-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

vue2-multipage-sample

A Vue2 MultiPage Sample Project

Project Structure

vue2-multipage-sample
    |--- build
    |--- config
    |--- dist   构建后的目录结构
        |--- index.html         <---------------|
        |--- cart.html          <------------   |
        |--- user.html          <--------   |   |
        |--- static                     |   |   |
            |--- js                     |   |   |
                |--- user.[hash].js  ---|   |   |
                |--- cart.[hash].js  -------|   |
                |--- index.[hash].js -----------|
                ...
    |--- src
        |--- assets
        |--- components 公共组建
        |--- pages  多页面文件夹(每个子文件夹都是一个独立的页面,约定:文件夹名称为页面名称)
            |--- index
                |--- index.html
                |--- index.js
                |--- App.vue    root-vue-component
                |--- components 页面内部的组件
                |--- routes 如果存在页面路由,在此处配置页面路由配置
                    |--- index.js
            |--- cart
                |--- cart.html
                |--- cart.js
                |--- App.vue
                |--- components
                |--- routes
            |--- user
                |--- user.html
                |--- user.js
                |--- App.vue
                |--- components
                |--- routes
            ...
    |--- static
    |--- package.json

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

空文件

简介

vue2-multipage-sample 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/vector_ding/vue2-multipage-sample.git
git@gitee.com:vector_ding/vue2-multipage-sample.git
vector_ding
vue2-multipage-sample
vue2-multipage-sample
master

搜索帮助