A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
cnpm install axios --save
cnpm install element-ui --save (npm i element-ui -S)
cnpm install sass-loader node-sass --save-dev (npm i sass-loader node-sass -D)
import ElementUI from 'element-ui'
import axios from 'axios'
import 'element-ui/lib/theme-chalk/index.css'
import 'font-awesome/css/font-awesome.min.css'
Vue.use(ElementUI)
Vue.prototype.axios = axios
axios.defaults.withCredentials=true
Vue.config.productionTip = false
new Vue({
el: '#app',
router,
render: h => h(App)
})
git clone -b master https://github.com/vuejs/vue-devtools.git
cnpm install
For a detailed explanation on how things work, check out the guide and docs for vue-loader.