Skip to content

Angular demo project with static generation powered by Scully

License

Notifications You must be signed in to change notification settings

orestes/demo-angular-scully-pokemon-browser

Repository files navigation

Pokémon Browser

Angular demo project with static generation powered by Scully

Adding Scully to your project

  1. Read the Scully documentation
  2. Add Scully to your Angular CLI project with ng add @scullyio/init
  3. Run yarn run scully and verify your routes are being pre-rendered
  4. If needed, write router plugins for your dynamic routes (like view/:id)
  5. If not needed during runtime, remove Angular altogether from the resulting bundle by using scully-plugin-disable-angular.

Build

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.

Building a static version with Scully

  1. Run yarn build:prod to build the project with production settings.
  2. Run yarn scully to generate a static version of your site, with no Angular scripts included.
  3. Deploy dist/static to your http server. You can also run yarn serve:static to serve locally

Links

License

Creative Commons Attribution 4.0 International License

About

Angular demo project with static generation powered by Scully

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published