摘要: 项目使用vue cli3脚手架工具构建按照element 官方文档中所示。 npm install babel-plugin-component -D 然后添加.babelrc文件 { "presets": [["es2015", { "modules": false }]], "plugins": 阅读全文
posted @ 2020-04-18 19:36 yun迹 阅读(1262) 评论(0) 推荐(1)
摘要: import Vue from 'vue'; import Vuex from 'vuex'; import * as actions from './actions'; import * as getters from './getters'; import state from './state 阅读全文
posted @ 2020-04-18 14:05 yun迹 阅读(479) 评论(0) 推荐(0)
摘要: --save 发布项目 还需要的 依赖 --save-dev 开发需要的依赖 但是发布不需要 阅读全文
posted @ 2020-04-18 11:52 yun迹 阅读(129) 评论(0) 推荐(0)
摘要: 安装热更新 nodemon简介 在开发的时候,每次修改文件,都需要重启 express 服务,比较麻烦。使用nodemon,修改文件后可以自动重启 express 服务。 1. 安装: npm install --save-dev nodemon 2. 修改package.json的内容: "scr 阅读全文
posted @ 2020-04-18 09:28 yun迹 阅读(2253) 评论(0) 推荐(0)