Code Monkey home page Code Monkey logo

quick-start-spa's Introduction

基于vue的移动端快速开发

webpack2版本在webpack2分支
0.基于vue-cli 免去一些重复劳作
1.加入启动自动以本机ip启动,方便移动端调试
2.对axios进行简单封装,可以拦截,取消请求,请求统一管理
3.自动安装常用依赖axios,js-cookie,less,sass,stylus,...
4.打包后查看资源大小仪表图by webpack-bundle-analyzer
5.资源仪表图bywebpack-jarvis
6.自带简单路由动画
7.自带vuex和路由模板
8.自带基础布局
9.主要依赖 默认cnd引入 不打包进vendor
10.自定义图标字体 支持iconfont和symbol(多色图表)
11.babel-polyfill
12.压缩首页css和js
13.首屏loading
14.跨域配置 config/proxy.js

Build Setup

# 安装依赖
npm install

# 以本机ip启动 方便移动端调试(连接局域网vpn时有时候无效)
npm run dev

# 打包
npm run build

# 打包并分析构建
npm run dist

# 单元测试
npm run unit

# e2e测试
npm run e2e

quick-start-spa's People

Contributors

artiely avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.