Giter Club home page Giter Club logo

vue-mobile-application's Introduction

vue-mobile-application

vue-component

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

use vue2.0,vue-router2.0,axios,mint-ui2.0

如果项目报错:DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils.这个是node的错误提醒,关掉就好了,在webpack配置文件中设置process.noDeprecation=true即可。可参考vuejs/vue-loader#666

打包问题

最近使用mint-ui打包发现总是会提示mint-ui中的es6语法无法在uglify下编译通过,这里建议在webpack配置babel-loader的时候加上mint-ui,两种情况,如果mint-ui没有带版本号的包[email protected]之类的,还有一个mint-ui包,你需要把带版本号的包加在babel-loader配置中(其实是mint-ui包依赖的具体版本好,如果没有则直接下载的对应版本),否则就直接加上mint-ui包即可(最好是直接把src和package目录直接加进去即可)。

vue-mobile-application's People

Contributors

stevenzwzhai 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.