Heroku后安装未按预期运行

时间:2018-11-13 14:24:51

标签: heroku deployment post-install

我想将项目部署到heroku。但是尽管后安装正在运行,但那里没有来自webpack的任何结果文件。 Webpack是依赖项,因此应该没有任何问题。

"scripts": { "test": "jest", "build-server": "babel server --out-dir dist --source-maps inline", "build-app": "npx webpack -p --env production", "build": "npm run build-app && npm run build-server", "postinstall": "npm run build" }, "dependencies": { ... "webpack": "^4.25.1", "webpack-cli": "^3.1.2" }, }

0 个答案:

没有答案