我想将项目部署到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"
},
}