Coder Social home page Coder Social logo

limingziqiang / vue2-multiple-entry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lincenying/vue2-multiple-entry

0.0 2.0 0.0 230 KB

vue2, vue2+vue-router, vue2+vue-router+vuex 混合多页配置脚手架

Home Page: http://old.mmxiaowu.com/vue2-multiple-entry/index

JavaScript 63.46% CSS 0.57% Vue 34.21% HTML 1.76%

vue2-multiple-entry's Introduction

vue2 多页配置实例

基于vue2 + vue-router + vuex而组成的多页配置实例

多页实例中包含 纯单页, 基于 vue-router 的单页, 基于 vue-router + vuex 的单页, 多种模式自由组合

在 module 文件夹中只留一个模块, 就变成 纯SPA

所有模块均带修改head里的title, 所有模块也都包含ajax例子, 任何不带ajax的例子都是耍流氓

vuex模块带有懒加载

DEMO: http://old.mmxiaowu.com/vue2-multiple-entry/index


fork
git clone

// 安装依赖
npm install  or  yarn

// 生产模式
npm run build

// 开发模式
npm run dev

目录结构

  • /build/ = webpack配置文件目录
  • /dist/ = webpack编译后生成文件目录
  • /src/api/ = axios配置目录
  • /src/assets/ = 静态文件目录
  • /src/components/ = 组件目录
  • /src/modules/ = 多页面模块, 每个模块一个文件夹
  • /src/modules/router   = 多页面模块之带路由模块的例子
  • /src/modules/vuex   = 多页面模块之带路由和vuex的模块的例子
  • /static/ = 静态文件目录
  • /template/ = html文件模版
  • /utils/ = 一些有用的插件

vue2-multiple-entry's People

Contributors

lincenying avatar

Watchers

James Cloos avatar ²¹带你去旅行♬ ♫♬ avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.