Giter Club home page Giter Club logo

mpvue-tutorials's Introduction

使用教程

第一步 克隆项目到本地

git clone https://github.com/noahlam/mpvue-tutorials.git

第二步 安装项目依赖

// 前提肯定是要进入项目目录啦 cd mpvue-tutorials
npm i

第三步 启动开发环境,并监控文件改动,实时编译

npm run dev

第四步 打开你的微信开发者工具,新建一个小程序,项目目录指向mpvue-tutorials/dist,就可以看到效果了

第五步 在src/pages目录下添加或者改动页面,查看效果 如果是添加页面,需要在 src/main.js 里面添加对应的路由

发布项目

npm run build

打包的文件,跟 npm run dev一样,也是放在mpvue-tutorials/dist中,同时,发布的是需要注意以下几点

  1. 如果之前有 npm run dev 那么在发布之前,请先停止dev。
  2. 如果打包之后,控制台有报错,请关闭微信开发者工具的 es6代码转换,代码压缩。

mpvue-tutorials's People

Contributors

noahlam avatar

Watchers

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