Giter Site home page Giter Site logo

vue2.0-elementui-axios-vuerouter's Introduction

my-app

Build Status language

my light app

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

在使用时要记得在config中配置url

由于使用了路由,所以webpack配置文件中要修改为,这样才能使用template

resolve: { alias: { 'vue$': 'vue/dist/vue.js' } }

此处使用的是webpack-simple,所以关于字体库要自己配置,并使用url-loader

加载css每次都最好加上style-loader和css-loader,而且要注意书写顺序,尤其是使用sass或less

关于elementUI的坑,自己去实践吧,总体还是不错的。

使用happypack和DllReferencePlugin,构建速度提升很多,从11s到3s,还是不错的

前几天看到有人说项目报错: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

pwa文件中有关于pwa应用开发的简单配置,可以供参考,https://github.com/Stevenzwzhai/zhihu-daily 这个项目是比较完整的一个pwa项目。

关于服务端渲染请移步这里https://github.com/Stevenzwzhai/vue-ssr-test ,我做了简单的一个ssr(比较粗糙),不过vue全家桶都有使用,对于初学者还是一个比较好理解的项目。

这里添加mockjs,可以正常调用接口

vue2.0-elementui-axios-vuerouter's People

Contributors

stevenzwzhai avatar

Watchers

 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.