核心提示:element :npm i element-ui -Smain.js:import ElementUI from element-uiimport element-ui/lib/theme-...
element :npm i element-ui -S
main.js:
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
stylus : cnpm install stylus --save-dev
cnpm install stylus-loader --save-dev
<style lang="stylus">
resource:cnpm i vue-resource --save
main.js:
import VueResource from 'vue-resource'
Vue.use(VueResource)
jquery:cnpm install -save jquery
main.js:
import $ from 'jquery'
window.jquery = $
window.$ = $