Giter VIP home page Giter VIP logo

multipage-vue-spa's Introduction

multipage-vue-spa

基于vue-cli重构的大型多页面SPA项目架构。

大型项目必定是由多个单页应用组成的,由于传统页面维护的历史原因,也很可能与非单页应用共存。

这套项目架构支持公共组件和资源的共用,每个SPA应用的独自编译和产出隔离,同时支持SPA内的异步组件;完美支持多人同时开发大型SPA项目。

配置

开发阶段不用关心,编译产出的时候修改build/webpack.base.conf.js文件中的currSPA变量为当前要编译的单页应用,它的值为src/page目录下对应的SPA应用。

假设当前test单页应用开发完毕,将要编译产出,则修改为:

//当前编译的spa为test
const currSPA = "test"

产出的文件在dist/test目录下,和其他SPA相隔离。

注意事项

page目录必须存在,其他目录可以根据自己的习惯修改。

multipage-vue-spa's People

Contributors

junixapp avatar

Stargazers

药水哥 avatar

Watchers

James Cloos avatar  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.