Laravel/Vuejs app does not update after deploying to Heroku

前端 未结 1 1122
Happy的楠姐
Happy的楠姐 2021-01-16 03:11

I have a Laravel/Vuejs app that works well on localhost. After deploying to Heroku, I realized that styles added to app.scss does not compile into my public/css file, thus h

相关标签:
1条回答
  • 2021-01-16 03:31

    Define a new script in your package.json:

    "heroku-postbuild": "npm run prod"
    

    This is how heroku executes the build script in the pipeline. It looks for build, otherwise you can customize it with heroku-postbuild.

    0 讨论(0)
提交回复
热议问题