1. vue create 创建项目 2. 路由按需加载 3. elementui按需加载 安装elementui, 安装npm install babel-plugin-component -D, 更改babel.config.js "plugins": [ [ "component", { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" } ] ] 4. 安装echarts,安装jquery chainWebpack: config => { config.plugin('provide').use(webpack.ProvidePlugin, [{ $: 'jquery', jquery: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery' }]) }, CryptoJS,lodash.debounce 问题: 1. vue-resource、axios混用 2. components中封装的组件大部分是没用的,应该删除 3. 引入文件用的是相对路径’../../../views/LeftMenu.vue‘,改成使用vue.config.js中定义的别名 4.