Vue project to build a process

Installation cnpm:

[altitude install g cnpm --registry = https://registry.npm.taobao.org ]

Common technology stack installation

  • stylus:

    [cnpm install stylus -g]+[cnpm install stylus stylus-loader --save-dev]

  • element-ui:

    [cnpm install element-ui --save]
    import ElementUI from 'element-ui'
    import 'element-ui/lib/theme-chalk/index.css'

    Examples in the bottom register
    new new Vue ({
    EL: '#app',
    Vuex,
    ElementUI,
    Router,
    the render: H => H (the App)
    })

  • axios:

    [npm install axios -save]

  • axios Package:

    https://www.jianshu.com/p/1209bc39b3ae

Guess you like

Origin www.cnblogs.com/zhongdabo/p/12004021.html