- Change "outputPath": "dist", part in angular.js
- Change "outDir": "./dist", part in tsconfig.json
- Match the directory in server.js
// setup the static folder
app.use(express.static(__dirname + "/dist"));
// handle "404" errors
app.use((req, res) => {
res.sendFile(path.join(__dirname + "/dist/index.html"));
});
See more:
https://stackoverflow.com/questions/37348045/how-to-change-the-dist-folder-path-in-angular-cli-after-ng-build
// setup the static folder
app.use(express.static(__dirname + "/dist"));
// handle "404" errors
app.use((req, res) => {
res.sendFile(path.join(__dirname + "/dist/index.html"));
});
See more:
https://stackoverflow.com/questions/37348045/how-to-change-the-dist-folder-path-in-angular-cli-after-ng-build