var process = { env: { VUE_ENV: "server", NODE_ENV: "production" } }; this.global = { process: process }; Promise = require('es6-promise').Promise; require('Vue'); require('vue-router') require('vue-server-renderer') require('axios'); require('qs'); require('axios/lib/helpers/buildURL'); require('axios/lib/core/buildFullPath'); require('axios/lib/core/settle'); require('axios/lib/core/createError'); require("htmlparser2"); GV.init = function(cb){ cb(require) }