Error setting up ES6 production build angular 6 project with node, express
Clash Royale CLAN TAG #URR8PPP Error setting up ES6 production build angular 6 project with node, express I have been trying to setup angular project with node, express and es6 code. It works without ES6 syntax but I am having a problem setting up babel. The project was created using angular-cli. I have installed babel-cli babel-preset-env package . Created .babelrc file for the same. I need to figure out exactly what goes in scripts for production build. package.json { "name": "alask", "version": "0.0.0", "scripts": { "ng": "ng", "start": "node server.js", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "postinstall": "ng build --aot --prod" }, "private": true, "dependencies": { "@angular/animations": "^6.1.0", ...