Skip to content

[Help wanted] MaterialUI + nest Production script #30

@kyctarnik

Description

@kyctarnik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions