Angular demo project with static generation powered by Scully
- Read the Scully documentation
- Add Scully to your Angular CLI project with
ng add @scullyio/init
- Run
yarn run scully
and verify your routes are being pre-rendered - If needed, write router plugins for your dynamic routes (like
view/:id
) - If not needed during runtime, remove Angular altogether from the resulting bundle by using scully-plugin-disable-angular.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
- Run
yarn build:prod
to build the project with production settings. - Run
yarn scully
to generate a static version of your site, with no Angular scripts included. - Deploy
dist/static
to your http server. You can also runyarn serve:static
to serve locally