Closed vinaybedre closed 6 years ago
This can be handled by providing heroku-postbuild. package.json should look something like this
"scripts": {
"dev": "node server",
"start": "cross-env NODE_ENV=production node server",
"build": "rimraf dist && npm run build:client && npm run build:server",
"build:client": "cross-env NODE_ENV=production webpack --config build/webpack.client.config.js --progress --hide-modules",
"build:server": "cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules",
"heroku-postbuild": "npm run build"
},
Hi,
Clone the template via vue-cli, run npm run build, deploy on heroku, I get a error on heroku hosting, Error: Cannot find module 'babel-runtime/core-js/promise' from '/app/public'