摘要:
nrm: npm registry manager npm 镜像源管理工具 安装nrm npm install -g nrm 查看所有的镜像源 nrm ls # nrm ls npm https://registry.npmjs.org/ * yarn https://registry.yarnpk 阅读全文
摘要:
严格模式 import getters from './getters' import mutations from './mutations' import actions from './actions' export default new Vuex.Store({ strict: true, 阅读全文
摘要:
定义 process.env的时机 如果已经提取了公共配置文件 webpack.common.js 分别定义了开发配置webpack.dev.js和生产配置webpack.prod.js 在webpack.common.js 合并 选项时的 plugins中使用插件DefinePlugin cons 阅读全文
摘要:
mapAction-store中的异步方法 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { msg: 'Hello world', count: 阅读全文
摘要:
mapMutation-store中的同步方法 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { msg: 'Hello world', count 阅读全文