1.下载依赖
yarn add element-ui -s
2.在main.js中引入
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './style/index.scss'
//导入element-ui及其样式
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
console.log(process.env);
console.log(process.env.NODE_ENV);
console.log(process.env.NODE_ENV==='poduction');
//安装element-ui组件
Vue.use(ElementUI);
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')