After installation your application comes with an example on how to use custom posts. to reduce the bundle size, it is recommended to unregister them.

Remove movie list and item pages

Open config/pages/index.ts and remove all references to ItemMoviePage and ListMoviePage :

import { ItemMoviePage } from './item-movie';
import { ListMoviePage } from './list-movie';

Under MenuMapping remove those properties:

movieItem: ItemMoviePage,
movie: ListMoviePage,

Under DeepLinkerLnks remove those routes:

{ component: ItemMoviePage, name: 'Movie', segment: 'movies/:slug' },
{ component: ListMoviePage, name: 'Movies', segment: 'movies' },

And to finish under PAGES remove:

ItemMoviePage,
ListMoviePage,

Remove movie list and item components

Open config/components/index.ts and remove all references to MovieListComponent and MovieItemComponent :

import { MovieListComponent } from './movie-list/movie-list';
import { MovieItemComponent } from './movie-item/movie-item';

Under ComponentsMapping remove the following:

'movie-list': MovieListComponent,
'movie-item': MovieItemComponent,

Then under COMPONENTS remove:

MovieListComponent,
MovieItemComponent,

results matching ""

    No results matching ""