vuetifyjs / webpack-ssr

Vuetify Webpack SSR Template
https://vuetifyjs.com/overview
62 stars 28 forks source link

Deploy issue on heroku #29

Closed vinaybedre closed 6 years ago

vinaybedre commented 6 years ago

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'

vinaybedre commented 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"
    },