Info: This is Angular2+ structure uses in Angle2 projects.
yarn
ornpm install
yarn start
ornpm run start
- for client renderingyarn ssr
ornpm run ssr
- for server-side renderingyarn build:universal
ornpm run build:universal
- for assembly in releaseyarn server
ornpm run server
- to start the serveryarn build:prerender
ornpm run build:prerender
- to generate static bystatic.paths.ts
- for watch with ssr -
npm run ssr:watch
To transfer ssr to your repository, you need the following files:
- .angular-cli.json
- server.ts
- prerender.ts
- webpack.config.js
- main.server.ts
- main.browser.ts
- shared/*
- forStorage/*
- environments/*
- app.browser.module.ts
- app.server.module.ts