Just starting to study react + nestjs and cant understand how to create production build and run script.
I tried to set
"scripts": {
"dev": "nodemon src/main.ts",
"build:server": "npx tsc --project tsconfig.server.json && npx babel-cli dist -d dist --extensions ".js"",
"build": "yarn build:clean && yarn build:server",
"start": "set NODE_ENV=production&&node dist/main.js"
}
I can see the styles are minified, but I'm not sure if my solution is correct.
Just starting to study react + nestjs and cant understand how to create production build and run script.
I tried to set
"scripts": {
"dev": "nodemon src/main.ts",
"build:server": "npx tsc --project tsconfig.server.json && npx babel-cli dist -d dist --extensions ".js"",
"build": "yarn build:clean && yarn build:server",
"start": "set NODE_ENV=production&&node dist/main.js"
}
I can see the styles are minified, but I'm not sure if my solution is correct.